summaryrefslogtreecommitdiffstats
path: root/Lib/locale.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #27076: Doc, comment and tests 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-9/+8
|
* Issue #22681: Added support for the koi8_t encoding.Serhiy Storchaka2015-05-121-0/+1
|
* Issue #22682: Added support for the kz1048 encoding.Serhiy Storchaka2015-05-121-0/+1
|
* Issue #13918: Provide a locale.delocalize() function which can removeAntoine Pitrou2014-10-231-6/+9
| | | | | locale-specific number formatting from a string representing a number, without then converting it to a specific type. Patch by Cédric Krier.
* 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/+9
|
* Issue #20079: Added locales supported in glibc 2.18 to locale alias table.Serhiy Storchaka2014-10-011-0/+99
|
* Issue #20046: Locale alias table no longer contains entities which can beSerhiy Storchaka2013-12-261-426/+40
| | | | calculated. Generalized support of the euro modifier.
* Issue #20027: Fixed locale aliases for devanagari locales.Serhiy Storchaka2013-12-261-3/+4
|\
| * 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 #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 #5815: Fixed support for locales with modifiers. Fixed support forSerhiy Storchaka2013-12-191-43/+75
| | | | | | | | locale encodings with hyphens.
* | Issue #9548: Add a minimal "_bootlocale" module that is imported by the _io ↵Antoine Pitrou2013-10-111-16/+5
| | | | | | | | module instead of the full locale module.
* | Issue #18200: Back out usage of ModuleNotFoundError (8d28d44f3a9a)Brett Cannon2013-07-041-1/+1
| |
* | Issue #18200: Update the stdlib (except tests) to useBrett Cannon2013-06-141-1/+1
|/ | | | ModuleNotFoundError.
* Fix last remaining references to ex-devguideÉric Araujo2011-11-291-2/+1
|
* Issue #3067: Enhance the documentation and docstring of locale.setlocale()Petri Lehtinen2011-11-051-2/+3
|
* Issue #3067: Fix the error raised by locale.setlocale()Petri Lehtinen2011-11-041-7/+11
|
* Closes #13283: removal of two unused variable in locale.pyJesus Cea2011-10-311-2/+0
|
* (merge) 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.
| * Fix #10154 and #10090: locale normalizes the UTF-8 encoding to "UTF-8" ↵Ronald Oussoren2011-05-171-1/+1
| | | | | | | | | | | | | | | | 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.
| * Merged revisions 80521 via svnmerge fromR. David Murray2010-09-051-14/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r80521 | r.david.murray | 2010-04-26 22:45:53 -0400 (Mon, 26 Apr 2010) | 13 lines Merged revisions 80512 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r80512 | r.david.murray | 2010-04-26 17:17:14 -0400 (Mon, 26 Apr 2010) | 7 lines Issue #6656: fix locale.format_string to handle escaped percents and mappings. 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. ........ ................
| * Merged revisions 75537,75539 via svnmerge fromAntoine Pitrou2009-10-191-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r75537 | antoine.pitrou | 2009-10-19 21:37:25 +0200 (lun., 19 oct. 2009) | 3 lines egreen is Derk Drukker + fix NEWS formatting ........ r75539 | antoine.pitrou | 2009-10-19 21:43:09 +0200 (lun., 19 oct. 2009) | 4 lines Issue #7080: locale.strxfrm() raises a MemoryError on 64-bit non-Windows platforms, and assorted locale fixes by Derk Drukker. ........
| * Merged revisions 74687 via svnmerge fromRonald Oussoren2009-09-061-1/+13
| | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r74687 | ronald.oussoren | 2009-09-06 15:59:02 +0200 (Sun, 06 Sep 2009) | 3 lines Fix for issue 6393: Python crashes on OSX when $LANG is set to some (but not all) invalid values due to an invalid result from nl_langinfo ........
* | Merged revisions 80512 via svnmerge fromR. David Murray2010-04-271-14/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r80512 | r.david.murray | 2010-04-26 17:17:14 -0400 (Mon, 26 Apr 2010) | 7 lines Issue #6656: fix locale.format_string to handle escaped percents and mappings. 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. ........
* | Merged revisions 79977 via svnmerge fromAntoine Pitrou2010-04-111-13/+89
| | | | | | | | | | | | | | | | | | | | | | 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. ........
* | Issue #7080: locale.strxfrm() raises a MemoryError on 64-bit non-WindowsAntoine Pitrou2009-10-191-2/+1
| | | | | | | | platforms, and assorted locale fixes by Derk Drukker.
* | Fix for issue 6393: Python crashes on OSX when $LANG is set to some (butRonald Oussoren2009-09-061-1/+13
| | | | | | | | not all) invalid values due to an invalid result from nl_langinfo
* | Merged revisions 74312 via svnmerge fromMark Dickinson2009-08-041-0/+3
|/ | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r74312 | mark.dickinson | 2009-08-04 22:56:04 +0100 (Tue, 04 Aug 2009) | 4 lines Issue #6620: Slightly safer code for _grouping_intervals in the locale module. Fixes a 'possible use before assignment' warning from pylint. Thanks Vincent Legoll. ........
* Fix for issue 6202Ronald Oussoren2009-06-071-3/+1
|
* Merged revisions 72469 via svnmerge fromJeroen Ruigrok van der Werven2009-05-081-13/+44
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r72469 | jeroen.ruigrok | 2009-05-08 16:11:23 +0200 (vr, 08 mei 2009) | 2 lines Update the Windows locale mapping with the ones introduced with Vista. ........
* Merged revisions 72468 via svnmerge fromJeroen Ruigrok van der Werven2009-05-081-0/+1
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r72468 | jeroen.ruigrok | 2009-05-08 15:07:39 +0200 (vr, 08 mei 2009) | 2 lines Add ISO-8859-16. ........
* Merged revisions 72399 via svnmerge fromJeroen Ruigrok van der Werven2009-05-061-1/+1
| | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r72399 | jeroen.ruigrok | 2009-05-06 15:16:36 +0200 (wo, 06 mei 2009) | 4 lines Be more explicit about the error we are catching. Requested by: Antoine Pitrou ........
* Merged revisions 72375 via svnmerge fromJeroen Ruigrok van der Werven2009-05-061-1/+4
| | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r72375 | jeroen.ruigrok | 2009-05-06 07:25:42 +0200 (wo, 06 mei 2009) | 5 lines Wrap getpreferredencoding()'s use of setlocale in a try/except to prevent us from raising an exception when the locale is invalid. Issue #1443504 ........
* Merged revisions 70936 via svnmerge fromR. David Murray2009-04-011-8/+15
| | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r70936 | r.david.murray | 2009-03-31 23:21:43 -0400 (Tue, 31 Mar 2009) | 4 lines Fix issue 2522. locale.format now checks that it is passed exactly one pattern, which avoids mysterious errors where it had seemed to fail to do localization. ........
* svnmerge from trunk for r70457 (sorry, I accidentally deleted the commit ↵Antoine Pitrou2009-03-181-1/+1
| | | | message)
* Merged revisions 70356 via svnmerge fromAntoine Pitrou2009-03-141-32/+51
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r70356 | antoine.pitrou | 2009-03-14 01:07:21 +0100 (sam., 14 mars 2009) | 3 lines Issue #1222: locale.format() bug when the thousands separator is a space character. ........
* Issue #1717: Remove cmp. Stage 1: remove all uses of cmp and __cmp__ fromMark Dickinson2009-01-271-1/+1
| | | | the standard library and tests.
* As discussed on python-dev, remove several operator functionsRaymond Hettinger2009-01-261-2/+2
| | | | | | | | | isSequenceType(), isMappingType(), and isNumberType() in favor of using abstract base classes. Also, remove repeat() and irepeat() in favor of mul() and imul(). After the buildbots have had a go at this. Will backport to Py3.0.1. For Py2.7, will just mark as deprecated.
* Merged revisions 65237 via svnmerge fromAntoine Pitrou2008-07-251-0/+16
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r65237 | antoine.pitrou | 2008-07-25 22:40:19 +0200 (ven., 25 juil. 2008) | 3 lines convert test_locale to unittest, and add a mechanism to override localconv() results for further testing (#1864, #1222) ........
* Merged revisions ↵Georg Brandl2008-06-101-19/+160
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 63724,63726,63732,63744,63754-63755,63757-63758,63760,63775,63781-63782,63787,63805-63808,63818-63819,63823-63824 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r63724 | gregory.p.smith | 2008-05-26 22:22:14 +0200 (Mon, 26 May 2008) | 6 lines Fixes issue2791: subprocess.Popen.communicate leaked a file descripton until the last reference to the Popen instance was dropped. Adding explicit close() calls fixes it. Candidate for backport to release25-maint. ........ r63726 | benjamin.peterson | 2008-05-26 22:43:24 +0200 (Mon, 26 May 2008) | 2 lines fix minor grammar typo ........ r63732 | benjamin.peterson | 2008-05-26 23:44:26 +0200 (Mon, 26 May 2008) | 2 lines remove duplication in test module ........ r63744 | lars.gustaebel | 2008-05-27 14:39:23 +0200 (Tue, 27 May 2008) | 3 lines Do not close external file objects passed to tarfile.open(mode='w:bz2') when the TarFile is closed. ........ r63754 | benjamin.peterson | 2008-05-28 03:12:35 +0200 (Wed, 28 May 2008) | 2 lines update tutorial function with more appropiate one from Eric Smith ........ r63755 | mark.hammond | 2008-05-28 03:54:55 +0200 (Wed, 28 May 2008) | 2 lines bdist_wininst now works correctly when both --skip-build and --plat-name are specified. ........ r63757 | georg.brandl | 2008-05-28 13:21:39 +0200 (Wed, 28 May 2008) | 2 lines #2989: add PyType_Modified(). ........ r63758 | benjamin.peterson | 2008-05-28 13:51:41 +0200 (Wed, 28 May 2008) | 2 lines fix spelling ........ r63760 | georg.brandl | 2008-05-28 17:41:36 +0200 (Wed, 28 May 2008) | 2 lines #2990: prevent inconsistent state while updating method cache. ........ r63775 | georg.brandl | 2008-05-29 09:18:17 +0200 (Thu, 29 May 2008) | 2 lines Two fixes in bytearray docs. ........ r63781 | georg.brandl | 2008-05-29 09:38:37 +0200 (Thu, 29 May 2008) | 2 lines #2988: add note about catching CookieError when parsing untrusted cookie data. ........ r63782 | georg.brandl | 2008-05-29 09:45:26 +0200 (Thu, 29 May 2008) | 2 lines #2985: allow i8 in XMLRPC responses. ........ r63787 | georg.brandl | 2008-05-29 16:35:39 +0200 (Thu, 29 May 2008) | 2 lines Revert #2990 patch; it's not necessary as Armin showed. ........ r63805 | raymond.hettinger | 2008-05-30 08:37:27 +0200 (Fri, 30 May 2008) | 1 line Issue 2784: fix leaks in exception exit. ........ r63806 | raymond.hettinger | 2008-05-30 08:49:47 +0200 (Fri, 30 May 2008) | 1 line Issue 2855: Fix obscure crasher by slowing down the entire module. Mimics what was done to dictionaries in r59223. ........ r63807 | raymond.hettinger | 2008-05-30 09:16:53 +0200 (Fri, 30 May 2008) | 1 line Issue 2903: Add __name__ in globals for namedtuple namespace. ........ r63808 | georg.brandl | 2008-05-30 09:54:16 +0200 (Fri, 30 May 2008) | 2 lines #2999: fix name of third parameter in unicode.replace()'s docstring. ........ r63818 | georg.brandl | 2008-05-30 21:12:13 +0200 (Fri, 30 May 2008) | 2 lines getloadavg() is not available on Windows. ........ r63819 | georg.brandl | 2008-05-30 21:17:29 +0200 (Fri, 30 May 2008) | 2 lines Better quote with single quotes. ........ r63823 | benjamin.peterson | 2008-05-30 22:44:39 +0200 (Fri, 30 May 2008) | 2 lines fix grammar ........ r63824 | marc-andre.lemburg | 2008-05-30 22:52:18 +0200 (Fri, 30 May 2008) | 5 lines Update the locale module alias table. Closes #3011. ........
* strxfrm and strcoll are conditionally defined, alwsy provide some implNeal Norwitz2008-03-101-11/+17
|
* Default to ASCII as the locale.getpreferredencoding, if the POSIXMartin v. Löwis2008-03-081-1/+5
| | | | | system doesn't support CODESET and LANG isn't set or doesn't allow deduction of an encoding.
* #1535: rename __builtin__ module to builtins.Georg Brandl2007-12-021-1/+1
|
* Patch# 1258 by Christian Heimes: kill basestring.Guido van Rossum2007-10-161-1/+2
| | | | I like this because it makes the code shorter! :-)
* Raise statement normalization in Lib/.Collin Winter2007-08-301-3/+3
|