Re: [Python-Dev] PEP 540: Add a new UTF-8 mode (v2)

2017年12月06日 14:24:06 -0800

2017年12月06日 23:07 GMT+01:00 Antoine Pitrou <[email protected]>:
> One question: how do you plan to test for the POSIX locale?
I'm not sure. I will probably rely on Nick for that ;-) Nick already
implemented this exact check for his PEP 538 which is already
implemented in Python 3.7.
I already implemented the PEP 540:
 https://bugs.python.org/issue29240
 https://github.com/python/cpython/pull/855
Right now, my implementation uses:
 char *ctype = _PyMem_RawStrdup(setlocale(LC_CTYPE, ""));
 ...
 if (strcmp(ctype, "C") == 0) ...
Victor
_______________________________________________
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to