[Linux-SIG] PEP 538: Coercing the legacy C locale to C.UTF-8

Nick Coghlan ncoghlan at gmail.com
Tue Jan 3 03:43:31 EST 2017


On 3 January 2017 at 17:51, Felix Yan <felixonmars at archlinux.org> wrote:

> On 01/03/2017 02:00 PM, Nick Coghlan wrote:
> > I'm posting it here to ask if anyone sees potential deal-breakers for
> > other non-Fedora-derived distros before I post it to python-dev for
> review.
>
> AFAIK the C.UTF-8 locale is still a downstream patch and not accepted in
> glibc upstream. Arch has closed the request as wontfix some years ago:
> https://bugs.archlinux.org/task/32296


It is, and https://sourceware.org/bugzilla/show_bug.cgi?id=17318 is the
upstream issue I filed with glibc for that.

However, upstream glibc are in the situation where the 1.5 MiB of UTF-8
data is a relatively big addition for them, while it isn't that big a deal
relative to the CPython runtime or a full Linux kernel.


> IMHO it would be nice to have an option to disable the usage of C.UTF-8.
>

Yep, that's part of the PEP - if you set PYTHONALLOWCLOCALE, CPython 3.7
would still complain about it, but it wouldn't try to coerce the locale to
something else.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/linux-sig/attachments/20170103/3fdfd146/attachment.html>


More information about the Linux-sig mailing list