A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2017-December/151112.html below:

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

[Python-Dev] PEP 540: Add a new UTF-8 mode (v2) [Python-Dev] PEP 540: Add a new UTF-8 mode (v2)Victor Stinner victor.stinner at gmail.com
Wed Dec 6 17:20:41 EST 2017
2017-12-06 23:07 GMT+01:00 Antoine Pitrou <solipsis at pitrou.net>:
> 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
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4