[issue32238] Handle "POSIX" in the legacy locale detection

2019-10-11 Thread STINNER Victor
STINNER Victor added the comment: In Python 3.8, if the LC_CTYPE is "POSIX", the default stdio error handler is now "surrogateescape" instead of "strict", and the UTF-8 is now enabled. In short, LC_CTYPE="POSIX" now behaves as LC_CTYPE="C". This change impacts at least FreeBSD. If I

[issue32238] Handle "POSIX" in the legacy locale detection

2017-12-07 Thread Jakub Wilk
Change by Jakub Wilk : -- nosy: +jwilk ___ Python tracker ___ ___ Python-bugs-list mailing

[issue32238] Handle "POSIX" in the legacy locale detection

2017-12-06 Thread Nick Coghlan
Nick Coghlan added the comment: Oops, I forgot I already had an open issue for this discrepancy - I just hadn't decided how to resolve it yet. Marking as a duplicate of https://bugs.python.org/issue30672 -- superseder: -> PEP 538: Unexpected locale behaviour on

[issue32238] Handle "POSIX" in the legacy locale detection

2017-12-06 Thread Nick Coghlan
Nick Coghlan added the comment: Added a dependency on https://bugs.python.org/issue32002, as we should finish the test case refactoring proposed there before adjusting the `POSIX` locale handling on macOS and other *BSD systems. -- dependencies:

[issue32238] Handle "POSIX" in the legacy locale detection

2017-12-06 Thread Nick Coghlan
New submission from Nick Coghlan : Right now, the legacy locale detection introduced in PEP 538 doesn't trigger for "LANG=POSIX" and "LC_CTYPE=POSIX" on macOS and other *BSD systems. This is because we're looking specifically for "C" as the response from