This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Update locale alias table
Type: enhancement Stage: resolved
Components: Library (Lib) Versions: Python 3.3, Python 3.4, Python 2.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: serhiy.storchaka Nosy List: berker.peksag, lemburg, loewis, python-dev, serhiy.storchaka
Priority: normal Keywords: patch

Created on 2013-12-20 11:36 by serhiy.storchaka, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
locale_aliases_77.patch serhiy.storchaka, 2013-12-20 11:36 review
Messages (8)
msg206676 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2013-12-20 11:36
Proposed patch updates locale alias table to most recent locale.alias file (from X.org 7.7 distribution).
msg206679 - (view) Author: Marc-Andre Lemburg (lemburg) * (Python committer) Date: 2013-12-20 13:23
On 20.12.2013 12:36, Serhiy Storchaka wrote:
> 
> Proposed patch updates locale alias table to most recent locale.alias file (from X.org 7.7 distribution).

Looks good.

BTW, regarding the devanagari cases:

There is some recent activity in glibc related to these. Here's a
patch that adds the  sd_IN@devanagari locale to glibc:
http://sourceware.org/cgi-bin/cvsweb.cgi/libc/localedata/locales/sd_IN@devanagari.diff?cvsroot=glibc&r1=NONE&r2=1.1

So they will start working once platforms adopt the new
glibc versions.

The @-modifier is applied to the locale, not the encoding, because
the locale uses a different script, as opposed to limiting itself
to part of an encoding. This looks reasonable, even though I'm
not sure it conforms to standards.
msg206681 - (view) Author: Berker Peksag (berker.peksag) * (Python committer) Date: 2013-12-20 13:44
See also issue 16555.
msg206686 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2013-12-20 15:12
> Looks good.

Should these patch be applied only to 3.4 or to all maintained 
releases? I suppose the later, because alias table which is not 
conform recent systems configuration is a bug.

> BTW, regarding the devanagari cases:

This patch only updates the devanagari cases in conform to 
locale.alias file. *Issue20027 should fix support of these cases.*
msg206688 - (view) Author: Marc-Andre Lemburg (lemburg) * (Python committer) Date: 2013-12-20 15:49
On 20.12.2013 16:12, Serhiy Storchaka wrote:
> 
> Serhiy Storchaka added the comment:
> 
>> Looks good.
> 
> Should these patch be applied only to 3.4 or to all maintained 
> releases? I suppose the later, because alias table which is not 
> conform recent systems configuration is a bug.

Agreed.

>> BTW, regarding the devanagari cases:
> 
> This patch only updates the devanagari cases in conform to 
> locale.alias file. *Issue20027 should fix support of these cases.*

Ok.
msg206690 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2013-12-20 16:24
New changeset 81f8375e60ce by Serhiy Storchaka in branch '2.7':
Issue #20034: Updated alias mapping to most recent locale.alias file
http://hg.python.org/cpython/rev/81f8375e60ce

New changeset ed62c4c70c4d by Serhiy Storchaka in branch '3.3':
Issue #20034: Updated alias mapping to most recent locale.alias file
http://hg.python.org/cpython/rev/ed62c4c70c4d
msg206691 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2013-12-20 16:27
Thanks for your review, Marc-Andre.
msg206693 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2013-12-20 16:51
New changeset 72e68af9e2fa by Serhiy Storchaka in branch 'default':
Issue #20034: Updated alias mapping to most recent locale.alias file
http://hg.python.org/cpython/rev/72e68af9e2fa
History
Date User Action Args
2022-04-11 14:57:55adminsetgithub: 64233
2013-12-20 16:51:44python-devsetmessages: + msg206693
2013-12-20 16:27:01serhiy.storchakasetstatus: open -> closed
messages: + msg206691

assignee: serhiy.storchaka
resolution: fixed
stage: patch review -> resolved
2013-12-20 16:24:28python-devsetnosy: + python-dev
messages: + msg206690
2013-12-20 15:49:48lemburgsetmessages: + msg206688
2013-12-20 15:12:39serhiy.storchakasetmessages: + msg206686
2013-12-20 13:44:58berker.peksagsetnosy: + berker.peksag
messages: + msg206681
2013-12-20 13:23:45lemburgsetmessages: + msg206679
2013-12-20 11:36:45serhiy.storchakacreate