summaryrefslogtreecommitdiffstats
path: root/Lib/locale.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-30409: locale.getpreferredencoding doesn't return result (#1672)Sean McCully2017-05-211-13/+10
|
* bpo-6393: Fix locale.getprerredencoding() on macOS (#1555)Victor Stinner2017-05-121-1/+13
| | | | | | Fix for bpo-6393: Python crashes on OSX when $LANG is set to some (but not all) invalid values due to an invalid result from nl_langinfo (cherry picked from commit 6d77e07196bfb5dfa4de6f5d80b2619c0643a75e)
* Issue #27171: Fix typos in documentation, code comments, and testsMartin Panter2016-06-021-1/+1
|
* Issue #27076: Doc, comment and test function name spelling fixesMartin Panter2016-05-261-1/+1
| | | | Most fixes to Doc/ and Lib/ directories by Ville Skyttä.
* [minor] - Correct the docstring of locale.str. Patch by poleto.Senthil Kumaran2016-04-131-10/+8
|
* Closes #25742: locale.setlocale() now accepts a Unicode string for its secondVictor Stinner2015-11-271-1/+5
| | | | parameter.
* Issue #20079: Updated alias mapping to glibc 2.19 SUPPORTED file.Serhiy Storchaka2014-10-021-1/+11
|
* Issue #20076: Remove just added the sr_rs.utf8@latn alias because it isSerhiy Storchaka2014-10-021-1/+0
| | | | derived from sr_rs@latin.
* Issue #20076: Added non derived UTF-8 aliases to locale aliases table.Serhiy Storchaka2014-10-011-0/+7
|
* Issue #20079: Added locales supported in glibc 2.18 to locale alias table.Serhiy Storchaka2014-10-011-0/+99
|
* Issue #20086: Restored the use of locale-independing mapping instead ofSerhiy Storchaka2014-01-171-3/+3
| | | | locale-depending str.lower() in locale.normalize().
* Issue #20027: Fixed locale aliases for devanagari locales.Serhiy Storchaka2013-12-261-3/+4
|
* Issue #20034: Updated alias mapping to most recent locale.alias fileSerhiy Storchaka2013-12-201-11/+43
| | | | from X.org distribution using makelocalealias.py.
* Issue #5815: Fixed support for locales with modifiers. Fixed support forSerhiy Storchaka2013-12-191-43/+75
| | | | locale encodings with hyphens.
* Issue #8767: Restore building with --disable-unicode.Martin v. Löwis2012-05-201-1/+9
| | | | Original patch by Stefano Taschini.
* Update lingering references to ex-parrot. I mean ex-devguide.Éric Araujo2012-02-261-2/+1
|
* Issue #3067: Enhance the documentation and docstring of locale.setlocale()Petri Lehtinen2011-11-051-2/+3
|
* Closes #13283: removal of two unused variable in locale.pyJesus Cea2011-10-311-2/+0
|
* The simplest possible fix for the regression in bug 12752 by encoding unicodesBarry Warsaw2011-08-151-0/+2
| | | | to 8-bit strings.
* Issue #1813: Fix codec lookup and setting/getting locales under Turkish locales.Antoine Pitrou2011-07-241-1/+8
|
* Revert d370d609d09b as requested by Terry Jan Reedy:Victor Stinner2011-06-201-1/+1
| | | | "#3067: locale.setlocale() accepts a Unicode locale."
* Close #3067: locale.setlocale() accepts a Unicode locale.Victor Stinner2011-06-201-1/+1
|
* (backport)Fix #10154 and #10090: locale normalizes the UTF-8 encoding to ↵Ronald Oussoren2011-05-171-1/+1
| | | | | | | | "UTF-8" instead of "UTF8" On MacOSX and OpenBSD (and possibly other BSDs) "en_US.UTF-8" is a valid locale while "en_US.UTF8" is not. As the former works on Linux as well it is better to normalize to that value.
* Issue #6656: fix locale.format_string to handle escaped percents and mappings.R. David Murray2010-04-261-14/+22
| | | | | | Refactors format_string. Includes tests for the two problems noted in the issue, but as far as I can see there are no other tests that confirm that format_string conforms to normal % formatting rules.
* Issue #8374: Update the internal alias table in the :mod:`locale` moduleAntoine Pitrou2010-04-111-13/+89
| | | | to cover recent locale changes and additions.
* Issue #6620: Slightly safer code for _grouping_intervals in the localeMark Dickinson2009-08-041-0/+3
| | | | | module. Fixes a 'possible use before assignment' warning from pylint. Thanks Vincent Legoll.
* backport r73268Benjamin Peterson2009-06-071-3/+1
|
* Update the Windows locale mapping with the ones introduced with Vista.Jeroen Ruigrok van der Werven2009-05-081-13/+44
|
* Add ISO-8859-16.Jeroen Ruigrok van der Werven2009-05-081-0/+1
|
* Be more explicit about the error we are catching.Jeroen Ruigrok van der Werven2009-05-061-1/+1
| | | | Requested by: Antoine Pitrou
* Wrap getpreferredencoding()'s use of setlocale in a try/except to preventJeroen Ruigrok van der Werven2009-05-061-1/+4
| | | | | | us from raising an exception when the locale is invalid. Issue #1443504
* Fix issue 2522. locale.format now checks that it is passedR. David Murray2009-04-011-8/+15
| | | | | exactly one pattern, which avoids mysterious errors where it had seemed to fail to do localization.
* Attempt to fix Solaris buildbot failure on test_localeAntoine Pitrou2009-03-181-1/+1
|
* Issue #1222: locale.format() bug when the thousands separator is a space ↵Antoine Pitrou2009-03-141-32/+51
| | | | character.
* convert test_locale to unittest, and add a mechanism to override localconv() ↵Antoine Pitrou2008-07-251-0/+16
| | | | results for further testing (#1864, #1222)
* Update the locale module alias table.Marc-André Lemburg2008-05-301-19/+160
| | | | Closes #3011.
* Patch #1710352: add missing public functions to locale.__all__.Georg Brandl2007-05-011-3/+5
|
* Whitespace normalization.Tim Peters2006-05-181-1/+1
|
* Patch #1180296: improve locale string formatting functionsGeorg Brandl2006-05-171-44/+126
|
* Whitespace normalization.Tim Peters2006-01-201-1/+1
|
* Readd bug report note.Georg Brandl2006-01-201-0/+6
|
* Bug #1371247: Update Windows LCIDs in locale.py.Georg Brandl2006-01-201-32/+179
|
* - Patch #1166948: locale.py: Prefer LC_ALL, LC_CTYPE and LANG over LANGUAGEMatthias Klose2005-09-201-1/+3
| | | | | | | to get the correct encoding. - Patch #1166938: locale.py: Parse LANGUAGE as a colon separated list of languages.
* SF patch #1051395: locale.getdefaultlocale does not return tuple in some OSRaymond Hettinger2005-01-011-1/+1
| | | | (Contributed by Jiwon Seo.)
* Correct mapping of Python codec name to C encoding name for UTF-8 (the C libMarc-André Lemburg2004-12-131-104/+1
| | | | | | doesn't seem to like "UTF-8"). Removed the UTF-8 aliases since these should be available for all locales.
* locale.py now uses an updated locale alias table (built usingMarc-André Lemburg2004-12-101-219/+871
| | | | | | | | | 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.
* Patch #962487: Don't crash for empty locale names.Martin v. Löwis2004-07-261-1/+1
|
* atof: correct parameter nameSkip Montanaro2004-04-101-3/+3
|
* Replace sequential split/join calls on strings with a single replace call.Brett Cannon2004-03-231-5/+3
| | | | Thanks Andrew Gaul.
* Support '' as the argument for the setlocale emulation. Fixes #678259.Martin v. Löwis2003-03-301-1/+1
|