diff options
author | dgp <dgp@users.sourceforge.net> | 2022-11-20 22:08:19 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2022-11-20 22:08:19 (GMT) |
commit | 49cb764a5a3c9a06ea2bebcbe8d7f46cca7472f5 (patch) | |
tree | f04edfd6fa0fc56142398ee4ef8bc311e2644c15 /tests/unixInit.test | |
parent | 8f9ddfae668df094f955bb9763bbf7569be015ca (diff) | |
download | tcl-49cb764a5a3c9a06ea2bebcbe8d7f46cca7472f5.zip tcl-49cb764a5a3c9a06ea2bebcbe8d7f46cca7472f5.tar.gz tcl-49cb764a5a3c9a06ea2bebcbe8d7f46cca7472f5.tar.bz2 |
In most testing scenarios, the TCL_LIBRARY variable is masking a bug
in system encoding discovery. Adapted test unixInit-3.2 to stop shielding
this problem from view.
Diffstat (limited to 'tests/unixInit.test')
-rw-r--r-- | tests/unixInit.test | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/unixInit.test b/tests/unixInit.test index 2ea7d8e..69c3eac 100644 --- a/tests/unixInit.test +++ b/tests/unixInit.test @@ -346,6 +346,8 @@ test unixInit-3.1 {TclpSetInitialEncodings} -constraints { } -match regexp -result {^(iso8859-15?|utf-8)$} test unixInit-3.2 {TclpSetInitialEncodings} -setup { catch {set oldlc_all $env(LC_ALL)} + catch {set oldtcl_library $env(TCL_LIBRARY)} + unset -nocomplain env(TCL_LIBRARY) } -constraints {unix stdio} -body { set env(LANG) japanese set env(LC_ALL) japanese @@ -364,6 +366,7 @@ test unixInit-3.2 {TclpSetInitialEncodings} -setup { } -cleanup { unset -nocomplain env(LANG) env(LC_ALL) catch {set env(LC_ALL) $oldlc_all} + catch {set env(TCL_LIBRARY) $oldtcl_library} } -result 0 test unixInit-4.1 {TclpSetVariables} {unix} { |