Error setting locale in python

Brandon S Allbery KF8NH allbery at kf8nh.com
Thu Jul 22 22:26:45 PDT 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 7/22/10 16:22 , Harald Hanche-Olsen wrote:
> I get the same result if I clear the environment using env - ...
> All the variables whose values are listed as "C" were actually not
> set; but setlocale reports them as "C". Not that it matters: Setting
> them to "C" does not change anything either.

"C" is the default when nothing else is specified, so that's correct
behavior.  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.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxJKBUACgkQIn7hlCsL25WCnACeL4XByVWMuJIz6KUkiLvIvY4x
6hsAoKZV/h7tXSZA1OVaRhkYb6l00VOh
=Xigm
-----END PGP SIGNATURE-----


More information about the macports-users mailing list