On Sun, Feb 1, 2015 at 1:35 PM, Peter Otten <__pete...@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
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to