[Python-Dev] UTF-8 Mode now also enabled by the POSIX locale (original) (raw)
Nick Coghlan ncoghlan at gmail.com
Sun Sep 2 12:56:55 EDT 2018
- Previous message (by thread): [Python-Dev] Use of Cython
- Next message (by thread): [Python-Dev] AIX and python tests
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Tue, 28 Aug 2018 at 23:02, Victor Stinner <vstinner at redhat.com> wrote:
Hi, While working on testutf8mode on AIX (bpo-34347) and HP-UX (bpo-34403), I noticed that FreeBSD doesn't work properly with the POSIX locale (bpo-34527). I also noticed that my implementation of my PEP 540 "UTF-8 Mode" doesn't respect the PEP: the UTF-8 Mode should be enabled by the POSIX locale, not only by the C locale. I just modified Python 3.7 and master (future 3.8) to enable UTF-8 Mode if the LCCTYPE locale is "POSIX": https://bugs.python.org/issue34527 I also fixed FreeBSD to support the "POSIX" locale as well (3.6, 3.7 and master branches). Note: The C locale coercion (PEP 538) is only enabled if the LCCTYPE locale is "C".
https://bugs.python.org/issue30672 is the open issue noting that it should also handle the case where POSIX isn't a simple alias for the C locale the way it is in glibc.
Cheers, Nick.
-- Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
- Previous message (by thread): [Python-Dev] Use of Cython
- Next message (by thread): [Python-Dev] AIX and python tests
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]