Error setting locale in python
Brandon S Allbery KF8NH
allbery at kf8nh.com
Fri Jul 23 15:32:36 PDT 2010
On 07/23/2010 05:14 AM, Harald Hanche-Olsen wrote:
> + Brandon S Allbery KF8NH<allbery at kf8nh.com>:
>
>> As such, you might try setting LANG and LC_ALL to C instead, in
>> case the iconv library you're using doesn't parse set-but-empty environment
>> variables correctly.
> Good catch! (Uh, setting LC_ALL to C would override my LC_CTYPE
> setting, would it not? But nevermind.) So this works:
No, the individual entries override LANG / LC_ALL, so you can do things
like set the locale to en_US.UTF-8 and then override LC_COLLATE to C so
"ls" does what we old timers expect. :)
More information about the macports-users
mailing list