-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
update locale aliases for glibc 2.24 #422
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change needs an entry in Misc/NEWS. Please open an issue on the tracker for discussion and reference.
data.update(parse(args.locale_alias)) | ||
data.update(parse_glibc_supported(args.glibc_supported)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why this is changed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because some of the X11 locale aliases conflict with the glibc ones. glibc obviously uses the glibc ones. This fixes problems where we would return encodings (like en_IN.ISO8859-1
) that don't correspond to the C-level one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is separate issue (bpo-20087). Let don't mix updating to newer glibc with changing the priority of aliases tables. The latter change needs blessing from the module maintainer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO, this is the only interesting change. I only upgraded the alias list because finding an old version of glibc is slightly annoying and updating it is unlikely to break things.
I suppose some of changes are related to bpo-20087. This was not discussed yet. |
I think this is the correct fix for bpo-29571. |
7d6c3b1
to
33a0ce0
Compare
Aye, I never did figure out why +1 for fixing the underlying discrepancy in 3.7+. |
33a0ce0
to
4f5053a
Compare
@benjaminp, when you run
It should be added to the long comment before the alias table. Only "updated" lines are needed, not "removed". Add a comment that glibc aliases now are preferred. This is the main cause of changes. And please add a test for en_IN. |
4f5053a
to
8ffe417
Compare
I also made makelocalealias.py prefer the glibc defaults.
8ffe417
to
3738b4a
Compare
Please see the ticket for discussion: http://bugs.python.org/issue20087 |
This merge should be undone. The PR clearly contains bugs and also is not complete. See the ticket for discussion. |
I also made makelocalealias.py prefer the glibc defaults.