Stan Ulbrych
78acd8e95e
gh-138286: Run `ruff on Tools/i18n` ( #138287 )
...
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
2025-08-31 20:29:02 +00:00
Serhiy Storchaka
0c8fecc4cf
gh-137729: Fix support for locales with @-modifiers (GH-137253)
2025-08-18 10:11:15 +03:00
Serhiy Storchaka
0f866cbfef
gh-133967: Do not normalize locale name 'C.UTF-8' to 'en_US.UTF-8' ( #135347 )
2025-06-10 13:38:32 +00:00
Serhiy Storchaka
a3f19c3f52
Remove mojibake in the locale aliases mapping. (GH-6716)
2018-05-06 10:52:38 +03:00
Benjamin Peterson
df8280838f
bpo-20087: Revert "make the glibc alias table take precedence over the X11 one ( #422 )" ( #713 )
...
This reverts commit 02371e0ed1 .
2017-03-19 23:49:43 -07:00
Benjamin Peterson
02371e0ed1
make the glibc alias table take precedence over the X11 one ( #422 )
...
bpo-20087
2017-03-07 22:03:13 -08:00
Serhiy Storchaka
8276d87f5a
Issue #20079 : makelocalealias.py now supports installed SUPPORTED file,
...
not only source SUPPORTED file in glibc sources tree.
2014-10-02 10:38:12 +03:00
Serhiy Storchaka
5189ee54cf
Issue #20076 : Apply optimization in makelocalealias.py repeatedly.
...
Remove just added the sr_rs.utf8@latn alias because it is
derived from sr_rs@latin.
2014-10-02 10:21:43 +03:00
Serhiy Storchaka
c383ad8d9c
Issue #20076 : Added non derived UTF-8 aliases to locale aliases table.
...
The makelocalealias.py script no longer ignores UTF-8 mapping.
2014-10-02 00:11:21 +03:00
Serhiy Storchaka
ea4f0573b4
Issue #20079 : Added locales supported in glibc 2.18 to locale alias table.
...
The makelocalealias.py script now can parse the SUPPORTED file
from glibc sources and supports command line options for source paths.
2014-10-01 23:42:30 +03:00
Serhiy Storchaka
8f8ec92de8
Issue #19936 : Added executable bits or shebang lines to Python scripts which
...
requires them. Disable executable bits and shebang lines in test and
benchmark files in order to prevent using a random system python, and in
source files of modules which don't provide command line interface. Fixed
shebang lines in the unittestgui and checkpip scripts.
2014-01-16 17:33:23 +02:00
Serhiy Storchaka
b992a0e102
Issue #19936 : Added executable bits or shebang lines to Python scripts which
...
requires them. Disable executable bits and shebang lines in test and
benchmark files in order to prevent using a random system python, and in
source files of modules which don't provide command line interface. Fixed
shebang line to use python3 executable in the unittestgui script.
2014-01-16 17:15:49 +02:00
Serhiy Storchaka
8c4f57d1d5
Issue #20046 : Locale alias table no longer contains entities which can be
...
calculated. Generalized support of the euro modifier.
2013-12-27 00:56:53 +02:00
Serhiy Storchaka
5eb01530b2
Issue #20027 : Fixed locale aliases for devanagari locales.
2013-12-26 21:20:59 +02:00
Serhiy Storchaka
55c6cc408c
Issue #20033 : makelocalealias.py now works with non-ASCII locales and produces
...
the same result as in 2.x.
2013-12-23 18:56:08 +02:00
Antoine Pitrou
0c70d2d144
Merged revisions 79977 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r79977 | antoine.pitrou | 2010-04-12 00:32:39 +0200 (lun., 12 avril 2010) | 4 lines
Issue #8374 : Update the internal alias table in the :mod:`locale` module
to cover recent locale changes and additions.
........
2010-04-11 22:35:34 +00:00
Benjamin Peterson
90f5ba538b
convert shebang lines: python -> python3
2010-03-11 22:53:45 +00:00
Georg Brandl
bf82e374ee
More 2to3 fixes in the Tools directory. Fixes #2893 .
2008-05-16 17:02:34 +00:00
Collin Winter
6afaeb757a
Convert print statements to function calls in Tools/.
2007-08-03 17:06:41 +00:00
Tim Peters
5a9fb3c415
Whitespace normalization.
2005-01-07 16:01:32 +00:00
Marc-André Lemburg
b4cebd465a
Correct mapping of Python codec name to C encoding name for UTF-8 (the C lib
...
doesn't seem to like "UTF-8").
Removed the UTF-8 aliases since these should be available for all locales.
2004-12-13 19:56:01 +00:00
Marc-André Lemburg
bb4f1bdd8b
locale.py now uses an updated locale alias table (built using
...
Tools/i18n/makelocalealias.py, a tool to parse the X11 locale
alias file); the encoding lookup was enhanced to use Python's
encoding alias table
As sige-effect, this fixes SF bug [ 1080864 ] locale.py doesn't recognize
valid locale setting.
2004-12-10 21:58:14 +00:00