Closed GoogleCodeExporter closed 8 years ago
That's right, a batch-compiled script (unlike the interpreter when it runs in
interactive or batch mode) doesn't initialize the locale for you. That's why
the string gets printed differently, since the Japanese characters are not
considered printable by the expression printer in the C locale. (If you add the
call setlocale LC_ALL "" at the beginning of your script, it does the right
thing in either case.) Actually, I don't remember why it is that way, so I'll
have to dig through the docs to see whether there is a reason for it. But I
tend to agree that it's a misbehaviour.
Original comment by aggraef@gmail.com
on 21 Jun 2010 at 8:42
Fixed in r3466. Thanks for reporting!
Original comment by aggraef@gmail.com
on 22 Jun 2010 at 4:29
Original issue reported on code.google.com by
echochamber
on 19 Jun 2010 at 4:40