Re: why expect make the Chinese code garbled
- From: Don Porter <dgp@xxxxxxxx>
- Date: Thu, 31 Jul 2008 12:27:34 -0400
Jason wrote:
thanks! the reason is the environment variable, if I use
LC_ALL=zh_CN.GB18030 ./myscripts
it works.
This change in environment probably changes what Tcl sets
[encoding system] to be.
I don't know how to set it in expect scripts, I use
set env(LC_ALL) zh_CN.GB18030
it didn't work.
By the time you get to where script evaluation permits setting elements
of the ::env array, a value for [encoding system] has already been
chosen.
--
| Don Porter Mathematical and Computational Sciences Division |
| donald.porter@xxxxxxxx Information Technology Laboratory |
| http://math.nist.gov/~DPorter/ NIST |
|______________________________________________________________________|
.
- References:
- why expect make the Chinese code garbled
- From: Jason
- Re: why expect make the Chinese code garbled
- From: Cameron Laird
- Re: why expect make the Chinese code garbled
- From: Jason
- why expect make the Chinese code garbled
- Prev by Date: Re: Domain scokets? ceptcl?
- Next by Date: Re: Domain scokets? ceptcl?
- Previous by thread: Re: why expect make the Chinese code garbled
- Next by thread: upgrade problem tcl/tk-8.4 -> 8.5 -- please help
- Index(es):