-
-
Notifications
You must be signed in to change notification settings - Fork 15.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Locales: C.UTF-8 is not available #20192
Comments
We use the list provided by upstream in the |
Apparently there is a strong push for putting C.UTF-8 in the binary instead, so that it can be guaranteed that it is available on all systems. |
While we could try and add C.UTF-8 support ourselves (like some other distro's have done or are planning) I think it's something best left to upstream, so I am closing this. If you think it should remain open, feel free to reopen. |
The last inter-linked discussions were from February 2015, so it's possible the push isn't so strong and the issue is just stalled long-term. I agree we would best leave this to upstream, at least until they do the first step of agreeing on some semantic details and adding |
It's likely that PEP 538 is accepted and that would mean Python 3.7 is going to try and use |
The patch from Fedora is quite simple: https://src.fedoraproject.org/cgit/rpms/glibc.git/tree/glibc-c-utf8-locale.patch |
Anything evolved since last discussion? |
|
Latest discussion on the topic upstream: |
Still not resolved upstream, not even in glibc-2.28 (which we don't have yet). |
Modern systems need a modern encoding system to deal with global data. Along with fedora and debian this enables c.utf-8 in our glibc build. The idea is to provide a utf-8 locale along with glibc, since we are not shipping glibcLocales by default because of its size. Fixes NixOS#20192
@Mic92 I see you have a patch in your branch. Did you test it? |
@FRidh I think there was a problem somewhere, which is why I never made a pull request. |
This is in master, so closing now. |
YES! Looking forward to this and resulting cleanups! (like the python PR ^_^) |
Issue description
The C.UTF-8 locale is missing (
locale -a
). We do have lots of other UTF-8 locales, but those are all country specific.The text was updated successfully, but these errors were encountered: