diff options
author | hobbs <hobbs@noemail.net> | 1999-08-19 02:59:39 (GMT) |
---|---|---|
committer | hobbs <hobbs@noemail.net> | 1999-08-19 02:59:39 (GMT) |
commit | b7fbf29513bc2cf120183542a9967ff70f67b564 (patch) | |
tree | ad660b8fb995c85c6ffd337c8056ed293d139e53 /library/msgcat | |
parent | a8342b736902623a5e220f393088a82fa58f1ac1 (diff) | |
download | tcl-b7fbf29513bc2cf120183542a9967ff70f67b564.zip tcl-b7fbf29513bc2cf120183542a9967ff70f67b564.tar.gz tcl-b7fbf29513bc2cf120183542a9967ff70f67b564.tar.bz2 |
1999-08-18 Jeff Hobbs <hobbs@scriptics.com>
* library/auto.tcl:
* library/init.tcl:
* library/ldAout.tcl:
* library/package.tcl:
* library/safe.tcl:
* library/word.tcl:
* library/http2.1/http.tcl:
* library/msgcat1.0/msgcat.tcl: updated libraries to better
Tcl style guide (no more string comparisons with == or !=, spacing
changes).
FossilOrigin-Name: e3a02d20c46d61cc25ed989999e3cdf41c625258
Diffstat (limited to 'library/msgcat')
-rw-r--r-- | library/msgcat/msgcat.tcl | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/library/msgcat/msgcat.tcl b/library/msgcat/msgcat.tcl index 37676da..7eb1f90 100644 --- a/library/msgcat/msgcat.tcl +++ b/library/msgcat/msgcat.tcl @@ -10,7 +10,7 @@ # See the file "license.terms" for information on usage and redistribution # of this file, and for a DISCLAIMER OF ALL WARRANTIES. # -# RCS: @(#) $Id: msgcat.tcl,v 1.2 1999/04/16 00:47:17 stanton Exp $ +# RCS: @(#) $Id: msgcat.tcl,v 1.3 1999/08/19 02:59:49 hobbs Exp $ package provide msgcat 1.0 @@ -78,8 +78,7 @@ proc msgcat::mclocale {args} { set word "" foreach part [split $args _] { set word [string trimleft "${word}_${part}" _] - set ::msgcat::loclist \ - [linsert $::msgcat::loclist 0 $word] + set ::msgcat::loclist [linsert $::msgcat::loclist 0 $word] } } return $::msgcat::locale @@ -137,7 +136,7 @@ proc msgcat::mcload {langdir} { # Returns the new locale. proc msgcat::mcset {locale src {dest ""}} { - if {$dest == ""} { + if {[string equal $dest ""]} { set dest $src } |