On 01Feb2015 14:17, Skip Montanaro <[email protected]> wrote:
On Sun, Feb 1, 2015 at 1:35 PM, Peter Otten <[email protected]> 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.

The latter lacks a dash. See if it's that.

Cheers,
Cameron Simpson <[email protected]>

A feature is a bug with seniority.
--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to