◐ Shell
reader mode source ↗
Skip to content

update locale aliases for glibc 2.24#422

Merged
benjaminp merged 1 commit into
masterfrom
benjamin-locale-aliases
Mar 8, 2017
Merged

update locale aliases for glibc 2.24#422
benjaminp merged 1 commit into
masterfrom
benjamin-locale-aliases

Conversation

@benjaminp

Copy link
Copy Markdown
Contributor

I also made makelocalealias.py prefer the glibc defaults.

@serhiy-storchaka serhiy-storchaka left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hide comment

This change needs an entry in Misc/NEWS. Please open an issue on the tracker for discussion and reference.

@serhiy-storchaka

Copy link
Copy Markdown
Member

I suppose some of changes are related to bpo-20087. This was not discussed yet.

@benjaminp

Copy link
Copy Markdown
Contributor Author

I think this is the correct fix for bpo-29571.

@benjaminp benjaminp force-pushed the benjamin-locale-aliases branch from 7d6c3b1 to 33a0ce0 Compare March 3, 2017 07:55
@ncoghlan

ncoghlan commented Mar 3, 2017

Copy link
Copy Markdown
Contributor

Aye, I never did figure out why locale.getpreferredencoding(False) and locale.getlocale(LC_CTYPE) were giving different answers - this would definitely explain it.

+1 for fixing the underlying discrepancy in 3.7+.

@benjaminp benjaminp force-pushed the benjamin-locale-aliases branch from 33a0ce0 to 4f5053a Compare March 4, 2017 07:27
@benjaminp benjaminp requested a review from malemburg March 4, 2017 07:27
@serhiy-storchaka

Copy link
Copy Markdown
Member

@benjaminp, when you run Tools/i18n/makelocalealias.py on unmodified sources, you get also a list of modified aliases:

#    updated 'az_az' -> 'az_AZ.ISO8859-9E' to 'az_AZ.UTF-8'
#    updated 'ca_ad' -> 'ca_AD.ISO8859-1' to 'ca_AD.ISO8859-15'
#    updated 'ca_fr' -> 'ca_FR.ISO8859-1' to 'ca_FR.ISO8859-15'

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.

@benjaminp benjaminp force-pushed the benjamin-locale-aliases branch from 4f5053a to 8ffe417 Compare March 7, 2017 05:42
I also made makelocalealias.py prefer the glibc defaults.
@benjaminp benjaminp force-pushed the benjamin-locale-aliases branch from 8ffe417 to 3738b4a Compare March 7, 2017 05:43
@malemburg

Copy link
Copy Markdown
Member

Please see the ticket for discussion: http://bugs.python.org/issue20087

@benjaminp benjaminp merged commit 02371e0 into master Mar 8, 2017
@benjaminp benjaminp deleted the benjamin-locale-aliases branch March 8, 2017 06:04
@malemburg

Copy link
Copy Markdown
Member

This merge should be undone. The PR clearly contains bugs and also is not complete. See the ticket for discussion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants