diff options
author | rjohnson <rjohnson> | 1999-07-07 23:08:13 (GMT) |
---|---|---|
committer | rjohnson <rjohnson> | 1999-07-07 23:08:13 (GMT) |
commit | 95230d707c09070e97548fa70c5e05072b1976dc (patch) | |
tree | 9a8b12abac1b4fa90a7ed7e9637021318dc6ca2f | |
parent | 0939ac05ffff9b512dd7e1a197d9bd8881bca036 (diff) | |
download | tcl-95230d707c09070e97548fa70c5e05072b1976dc.zip tcl-95230d707c09070e97548fa70c5e05072b1976dc.tar.gz tcl-95230d707c09070e97548fa70c5e05072b1976dc.tar.bz2 |
Made test encoding test understand platform differences.
-rw-r--r-- | tests/unixInit.test | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/unixInit.test b/tests/unixInit.test index 3c20204..9426ec6 100644 --- a/tests/unixInit.test +++ b/tests/unixInit.test @@ -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: unixInit.test,v 1.8 1999/07/01 17:36:20 jenn Exp $ +# RCS: @(#) $Id: unixInit.test,v 1.9 1999/07/07 23:08:13 rjohnson Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest @@ -168,8 +168,12 @@ test unixInit-3.2 {TclpSetInitialEncodings} {unixOnly installedTcl} { close $f unset env(LANG) - set enc -} {euc-jp} + switch $tcl_platform(os) { + HP-UX {set expectedEncoding shiftjis} + default {set expectedEncoding euc-jp} + } + string compare $enc $expectedEncoding +} 0 test unixInit-4.1 {TclpSetVariables} {unixOnly} { # just make sure they exist |