Marc-Andre Lemburg added the comment: On 13.01.2017 04:47, Nick Coghlan wrote: > Accepting "UTF-8" and interpreting it as functionally equivalent to C.UTF-8 > will mean that this setting will at least work as desired on servers that > offer C.UTF-8.
I don't think that's within the scope of this patch. "UTF-8" is not a valid locale setting on Linux and so Python should not allow passing this through the locale normalization process on Linux. Please also note that SSH does not forward arbitrary env vars. Only a select few are forwarded and all others have to be configured. The locale vars are not among the default ones (see the ssh man page for details). Aisde: While looking into this I found that the locale module aliases C.UTF-8 to en_US.UTF-8. This was added as part of issue #20076 and originates from the X.org locale.alias file. Time machine and all that :-) ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue18378> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com