pydoc3.5 borks on my Mac

Skip Montanaro skip.montanaro at gmail.com
Sun Feb 1 15:17:46 EST 2015


On Sun, Feb 1, 2015 at 1:35 PM, Peter Otten <__peter__ at web.de> wrote:
> $ LANG=en_US.UTF-8 python3 -c 'import locale; print(locale.getpreferredencoding(False))'

Aha!

hgpython% LANG=en_US.UTF-8 python3.5 -c 'import locale;
print(locale.getpreferredencoding(False))'
UTF-8
hgpython% LANG=en_US.utf8 python3.5 -c 'import locale;
print(locale.getpreferredencoding(False))'
US-ASCII

Thank you. I always thought these Unicode encodings were supposed to
be case-insensitive.

Skip



More information about the Python-list mailing list