History log of /external/python/cpython2/Lib/locale.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
8d496add74530767cad3aa8b5b371b9a7f0b8498 02-Jun-2016 Martin Panter <vadmium+py@gmail.com> Issue #27171: Fix typos in documentation, code comments, and tests
/external/python/cpython2/Lib/locale.py
b1d867f14965e2369d31a3fcdab5bca34b4d81b4 26-May-2016 Martin Panter <vadmium+py@gmail.com> Issue #27076: Doc, comment and test function name spelling fixes

Most fixes to Doc/ and Lib/ directories by Ville Skyttä.
/external/python/cpython2/Lib/locale.py
f1023bad2ebe4136666934c69794ba95cbd4eb09 13-Apr-2016 Senthil Kumaran <senthil@uthcode.com> [minor] - Correct the docstring of locale.str. Patch by poleto.
/external/python/cpython2/Lib/locale.py
e08496b62ddac29713a9fbc849fde5b9bb4f1121 27-Nov-2015 Victor Stinner <victor.stinner@gmail.com> Closes #25742: locale.setlocale() now accepts a Unicode string for its second
parameter.
/external/python/cpython2/Lib/locale.py
5f4e55c500bf1d7a32a289013d8262167be11dc0 02-Oct-2014 Serhiy Storchaka <storchaka@gmail.com> Issue #20079: Updated alias mapping to glibc 2.19 SUPPORTED file.
/external/python/cpython2/Lib/locale.py
ad95599e3f5a66e0586da782dfa18f2903989cf2 02-Oct-2014 Serhiy Storchaka <storchaka@gmail.com> Issue #20076: Remove just added the sr_rs.utf8@latn alias because it is
derived from sr_rs@latin.
/external/python/cpython2/Lib/locale.py
b3d80a21ac93f36ec18046009b49c8f7d96b058c 01-Oct-2014 Serhiy Storchaka <storchaka@gmail.com> Issue #20076: Added non derived UTF-8 aliases to locale aliases table.
/external/python/cpython2/Lib/locale.py
4e286eb0c22d434eee8e25a6bd63b85ed02d87b8 01-Oct-2014 Serhiy Storchaka <storchaka@gmail.com> Issue #20079: Added locales supported in glibc 2.18 to locale alias table.
/external/python/cpython2/Lib/locale.py
af080876dc4148b15bb79886b8aeecbf173f4fd3 17-Jan-2014 Serhiy Storchaka <storchaka@gmail.com> Issue #20086: Restored the use of locale-independing mapping instead of
locale-depending str.lower() in locale.normalize().
/external/python/cpython2/Lib/locale.py
d551b2857145b189c7288f9c78b5d2e9dab5ffe8 26-Dec-2013 Serhiy Storchaka <storchaka@gmail.com> Issue #20027: Fixed locale aliases for devanagari locales.
/external/python/cpython2/Lib/locale.py
0e4d852abf4db526febeb3fbb3759e3498559593 20-Dec-2013 Serhiy Storchaka <storchaka@gmail.com> Issue #20034: Updated alias mapping to most recent locale.alias file
from X.org distribution using makelocalealias.py.
/external/python/cpython2/Lib/locale.py
bd789862799c7d4464970d3e0031255fb35952eb 19-Dec-2013 Serhiy Storchaka <storchaka@gmail.com> Issue #5815: Fixed support for locales with modifiers. Fixed support for
locale encodings with hyphens.
/external/python/cpython2/Lib/locale.py
ed11a5d018e3fc234d7126832756a15c1af67d22 20-May-2012 Martin v. Löwis <martin@v.loewis.de> Issue #8767: Restore building with --disable-unicode.
Original patch by Stefano Taschini.
/external/python/cpython2/Lib/locale.py
8d4d74eefcdcdd7fb5f038b4488b41bfa5e11b2c 26-Feb-2012 Éric Araujo <merwok@netwok.org> Update lingering references to ex-parrot. I mean ex-devguide.
/external/python/cpython2/Lib/locale.py
416ecffcc49941a39ec3109eb20ae9ce558326ea 05-Nov-2011 Petri Lehtinen <petri@digip.org> Issue #3067: Enhance the documentation and docstring of locale.setlocale()
/external/python/cpython2/Lib/locale.py
e4ae5f7e0fa40b323a69fbbe70cca6aa312c55aa 31-Oct-2011 Jesus Cea <jcea@jcea.es> Closes #13283: removal of two unused variable in locale.py
/external/python/cpython2/Lib/locale.py
edfba8244c6ec1a7aceeff69e304489478d9d7c7 16-Aug-2011 Barry Warsaw <barry@python.org> The simplest possible fix for the regression in bug 12752 by encoding unicodes
to 8-bit strings.
/external/python/cpython2/Lib/locale.py
4cfae027b39d14a5a43f337c1a38b42d7461dd3a 24-Jul-2011 Antoine Pitrou <solipsis@pitrou.net> Issue #1813: Fix codec lookup and setting/getting locales under Turkish locales.
/external/python/cpython2/Lib/locale.py
ecb863b29ecaa4cd48679a45e9f9455b1f717f8b 20-Jun-2011 Victor Stinner <victor.stinner@haypocalc.com> Revert d370d609d09b as requested by Terry Jan Reedy:

"#3067: locale.setlocale() accepts a Unicode locale."
/external/python/cpython2/Lib/locale.py
c36c6ccb416de0fc4a6635339fa7a7657085a1b7 20-Jun-2011 Victor Stinner <victor.stinner@haypocalc.com> Close #3067: locale.setlocale() accepts a Unicode locale.
/external/python/cpython2/Lib/locale.py
372954e059956aab354d9abfa7fcdcaca40a6079 17-May-2011 Ronald Oussoren <ronaldoussoren@mac.com> (backport)Fix #10154 and #10090: locale normalizes the UTF-8 encoding to "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.
/external/python/cpython2/Lib/locale.py
3939dcdb72e29aeac43c0c6bcba69e098ed516ee 26-Apr-2010 R. David Murray <rdmurray@bitdance.com> 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.
/external/python/cpython2/Lib/locale.py
fc53153498c6927a38b83462c40cf8e15965759d 12-Apr-2010 Antoine Pitrou <solipsis@pitrou.net> Issue #8374: Update the internal alias table in the :mod:`locale` module
to cover recent locale changes and additions.
/external/python/cpython2/Lib/locale.py
4b4567347310031b2e28f26e7d8b4430722de2f9 04-Aug-2009 Mark Dickinson <dickinsm@gmail.com> Issue #6620: Slightly safer code for _grouping_intervals in the locale
module. Fixes a 'possible use before assignment' warning from pylint.
Thanks Vincent Legoll.
/external/python/cpython2/Lib/locale.py
e021c9cb27734bce1e03c9b4509b4c6a20590e1a 07-Jun-2009 Benjamin Peterson <benjamin@python.org> backport r73268
/external/python/cpython2/Lib/locale.py
b87b33462cba96331db2d063b968063855946d9a 08-May-2009 Jeroen Ruigrok van der Werven <asmodai@in-nomine.org> Update the Windows locale mapping with the ones introduced with Vista.
/external/python/cpython2/Lib/locale.py
51133d42975559688388dd8e31c474958f8c703e 08-May-2009 Jeroen Ruigrok van der Werven <asmodai@in-nomine.org> Add ISO-8859-16.
/external/python/cpython2/Lib/locale.py
c924b3d115044dc068569a2217569212166735f4 06-May-2009 Jeroen Ruigrok van der Werven <asmodai@in-nomine.org> Be more explicit about the error we are catching.

Requested by: Antoine Pitrou
/external/python/cpython2/Lib/locale.py
041f465cbd0d180426cbd5ab544266b7c06fd120 06-May-2009 Jeroen Ruigrok van der Werven <asmodai@in-nomine.org> Wrap getpreferredencoding()'s use of setlocale in a try/except to prevent
us from raising an exception when the locale is invalid.

Issue #1443504
/external/python/cpython2/Lib/locale.py
a83da3507f6f6075cce143cb118d3ddb23df981c 01-Apr-2009 R. David Murray <rdmurray@bitdance.com> 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.
/external/python/cpython2/Lib/locale.py
7c33bd5ecba73625a3e48685a62870dd6a9806f1 18-Mar-2009 Antoine Pitrou <solipsis@pitrou.net> Attempt to fix Solaris buildbot failure on test_locale
/external/python/cpython2/Lib/locale.py
feeafff0529c8fa0b5ab6a3086464cce8fd1b3fc 14-Mar-2009 Antoine Pitrou <solipsis@pitrou.net> Issue #1222: locale.format() bug when the thousands separator is a space character.
/external/python/cpython2/Lib/locale.py
ba54edadb3ad920a72369374bca35021bb8a1edb 25-Jul-2008 Antoine Pitrou <solipsis@pitrou.net> convert test_locale to unittest, and add a mechanism to override localconv() results for further testing (#1864, #1222)
/external/python/cpython2/Lib/locale.py
adff65bc3e49f58c637d7cb5b72b10268b4d7efd 30-May-2008 Marc-André Lemburg <mal@egenix.com> Update the locale module alias table.

Closes #3011.
/external/python/cpython2/Lib/locale.py
09728b7ef3c2e12677725703e67fa9fddc84463e 01-May-2007 Georg Brandl <georg@python.org> Patch #1710352: add missing public functions to locale.__all__.
/external/python/cpython2/Lib/locale.py
fd4c419332c7ce5a9e0cb1bf14526c0b81c7d9b7 18-May-2006 Tim Peters <tim.peters@gmail.com> Whitespace normalization.
/external/python/cpython2/Lib/locale.py
b89316fdbf5d5d4d33ab780c5ce2ab006ebb6ea7 17-May-2006 Georg Brandl <georg@python.org> Patch #1180296: improve locale string formatting functions
/external/python/cpython2/Lib/locale.py
777f1083efd7aeff1c394068c750a1d7f02af4f6 20-Jan-2006 Tim Peters <tim.peters@gmail.com> Whitespace normalization.
/external/python/cpython2/Lib/locale.py
5035c1c55704f83b65aa9e12578ab0a0805e9de3 20-Jan-2006 Georg Brandl <georg@python.org> Readd bug report note.
/external/python/cpython2/Lib/locale.py
b709c2caba3c781d0f4602f28227993e565f0a87 20-Jan-2006 Georg Brandl <georg@python.org> Bug #1371247: Update Windows LCIDs in locale.py.
/external/python/cpython2/Lib/locale.py
f3f231f60cd59e9e1bceccde11a1997054a73113 20-Sep-2005 Matthias Klose <doko@ubuntu.com> - Patch #1166948: locale.py: Prefer LC_ALL, LC_CTYPE and LANG over LANGUAGE
to get the correct encoding.

- Patch #1166938: locale.py: Parse LANGUAGE as a colon separated list of
languages.
/external/python/cpython2/Lib/locale.py
346e67f80553be5297dccd43db7a71f4b81bdcab 01-Jan-2005 Raymond Hettinger <python@rcn.com> SF patch #1051395: locale.getdefaultlocale does not return tuple in some OS
(Contributed by Jiwon Seo.)
/external/python/cpython2/Lib/locale.py
b4cebd465acb6370b5ec48023da8c333a7e1c753 13-Dec-2004 Marc-André Lemburg <mal@egenix.com> 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.
/external/python/cpython2/Lib/locale.py
bb4f1bdd8bcf87f9918a6e756c182de68238ae64 10-Dec-2004 Marc-André Lemburg <mal@egenix.com> 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.
/external/python/cpython2/Lib/locale.py
c8ae31dcbd20933abc2aadb4ab62aa8e99c81bf5 26-Jul-2004 Martin v. Löwis <martin@v.loewis.de> Patch #962487: Don't crash for empty locale names.
/external/python/cpython2/Lib/locale.py
249369c7f074b71ab4484a61bd17eb4c3ff6485d 10-Apr-2004 Skip Montanaro <skip@pobox.com> atof: correct parameter name
/external/python/cpython2/Lib/locale.py
aaeffaf01e385d9a510f607b0b101ae6ba7dba5b 24-Mar-2004 Brett Cannon <bcannon@gmail.com> Replace sequential split/join calls on strings with a single replace call.
Thanks Andrew Gaul.
/external/python/cpython2/Lib/locale.py
103d6e7a3c9feed2ef54d51c77f0daa614dc936a 30-Mar-2003 Martin v. Löwis <martin@v.loewis.de> Support '' as the argument for the setlocale emulation. Fixes #678259.
/external/python/cpython2/Lib/locale.py
230a60c6ec4861342278fb4546ebc907baf3b23b 09-Nov-2002 Tim Peters <tim.peters@gmail.com> Whitespace normalization.
/external/python/cpython2/Lib/locale.py
a326f47a13e0c9fac32067f093976e2210da09e5 05-Nov-2002 Tim Peters <tim.peters@gmail.com> This stopped working on Windows, due to a reference to the non-existent
_locale.getdefaultlocale. Guessing a leading underscore was intended,
but don't really understood this stuff (locale looks like Spanish for
the opposite of global to me <wink>).
/external/python/cpython2/Lib/locale.py
f0a4668e6f23da6e60c58933f31250cabc7213d6 03-Nov-2002 Martin v. Löwis <martin@v.loewis.de> Add getpreferredencoding. Support @euro modifiers. Fixes #554676.
The @euro part is backported to 2.2.3.
/external/python/cpython2/Lib/locale.py
37a09822789d6ee3e6cb4e724f8e59e23b9ec83a 19-Oct-2002 Fredrik Lundh <fredrik@pythonware.com> point people to the Python bug tracker, rather than to a mail
account I hardly ever use...
/external/python/cpython2/Lib/locale.py
0897f0c4f8034fa656cf2be3cda93bfb067d0a65 25-Mar-2002 Skip Montanaro <skip@pobox.com> eliminate unqualified except when checking for presence of LC_MESSAGES
see bug 411881
/external/python/cpython2/Lib/locale.py
1f877ef1993eaa40167fbdd818739e77ae1b9424 13-Aug-2001 Andrew M. Kuchling <amk@amk.ca> Remove some dead code (PyChecker)
/external/python/cpython2/Lib/locale.py
67addfe2a87d22458323e268d2bcc7406e6febc2 16-Apr-2001 Guido van Rossum <guido@python.org> Implement Mark Favas's suggestion. There's a clear bug in _group():
its first return statement returns a single value while its caller
always expects it to return a tuple of two items. Fix this by
returning (s, 0) instead.

This won't make the locale test on Irix succeed, but now it will fail
because of a bug in the platform's en_US locale rather than because of
a bug in the locale module.
/external/python/cpython2/Lib/locale.py
88ad12afacb2b08b5d675be61f47c9244fba6825 13-Apr-2001 Martin v. Löwis <martin@v.loewis.de> Patch #415777: new grouping strategy.
fixes bug #414940, and redoes the fix for #129417 in a different way.
It also fixes a number of other problems with locale-specific formatting:
If there is leading or trailing spaces, then no grouping should be applied
in the spaces, and the total length of the string should not be changed
due to grouping.
Also added test case which works only if the en_US locale is available.
/external/python/cpython2/Lib/locale.py
7519e7af4207b46909de6374adac520f9205fe4f 23-Mar-2001 Barry Warsaw <barry@python.org> setlocale(): In _locale-missing compatibility function, string
comparison should be done with != instead of "is not".
/external/python/cpython2/Lib/locale.py
be9b507bddf79fc98536dee2feaf05fcd4438196 09-Feb-2001 Eric S. Raymond <esr@thyrsus.com> String method conversion.
/external/python/cpython2/Lib/locale.py
1baf829835adc795203179fc84256a6a7ca6202d 24-Jan-2001 Tim Peters <tim.peters@gmail.com> test___all__ was failing on WIndows because locale.py doesn't really
know which names it exports. Didn't fix its ignorance, but patched
over the consequence.
/external/python/cpython2/Lib/locale.py
17ab123cf1f0597e7e257c1ce83a6e87b85ffd7b 24-Jan-2001 Skip Montanaro <skip@pobox.com> a few more modules get __all__
/external/python/cpython2/Lib/locale.py
db786876b6c5ab24c1cd7427fd077545dbb72fee 21-Jan-2001 Martin v. Löwis <martin@v.loewis.de> In format(), consider sign only after grouping.
Suggested by Kevin Jacobs in bug report #129417.
/external/python/cpython2/Lib/locale.py
7e47402264cf87b9bbb61fc9ff610af08add7c7b 16-Jul-2000 Thomas Wouters <thomas@python.org> Spelling fixes supplied by Rob W. W. Hooft. All these are fixes in either
comments, docstrings or error messages. I fixed two minor things in
test_winreg.py ("didn't" -> "Didn't" and "Didnt" -> "Didn't").

There is a minor style issue involved: Guido seems to have preferred English
grammar (behaviour, honour) in a couple places. This patch changes that to
American, which is the more prominent style in the source. I prefer English
myself, so if English is preferred, I'd be happy to supply a patch myself ;)
/external/python/cpython2/Lib/locale.py
663809ed830ac84f9c6fe94ad7c2a3cc302d0680 10-Jul-2000 Fredrik Lundh <fredrik@pythonware.com> -- removed get_default compatibility kludge

-- added a few extra comments to locale.py
/external/python/cpython2/Lib/locale.py
0466132ee4c0a96ef6dd936f0b6415991d20e570 10-Jul-2000 Fredrik Lundh <fredrik@pythonware.com> - repaired locale.py for non-windows platforms. the try/except
checked for the wrong exception. my fault. sorry.
(first reported by Alex Coventry)
/external/python/cpython2/Lib/locale.py
6c86b99dc1e2d02cb4631df65f0726416a783087 09-Jul-2000 Fredrik Lundh <fredrik@pythonware.com> - merged setlocale and set_locale. the internal setlocale
function is overridden by a python version which accepts
*either* a string (old behaviour) or a locale tuple.

- renamed a few methods (for consistency):

get_locale => getlocale
get_default_locale => getdefaultlocale
set_to_default => resetlocale (!)

- the _locale implementation module can now implement
an optional _getdefaultlocale function. if that function
isn't available, a POSIX-based approach is used (checking
LANG and other environment variables, as usual).

(patch #100765)
/external/python/cpython2/Lib/locale.py
a05e293a219f0fbaf4301fa7a292b9578a523675 28-Jun-2000 Jeremy Hylton <jeremy@alum.mit.edu> typos fixed by Rob Hooft
/external/python/cpython2/Lib/locale.py
2348114ba839977fc831ce786e89ab1c6780fe4c 08-Jun-2000 Marc-André Lemburg <mal@egenix.com> Marc-Andre Lemburg <mal@lemburg.com>:
Added emulations of the C APIs in _locale to be used when the
_locale module is not enabled. They return the correct values
assuming the 'C' locale.
/external/python/cpython2/Lib/locale.py
5431bc36026c9cd61046b65a0bd343f37f42c410 07-Jun-2000 Marc-André Lemburg <mal@egenix.com> Marc-Andre Lemburg <mal@lemburg.com>:
Added a new locale name aliasing engine which also supports
locale encodings, a feature which is used by the new default
encoding support in site.py.
/external/python/cpython2/Lib/locale.py
4b8c6eaf8b287a27e0054cf6c751448b2077e83b 04-Feb-2000 Guido van Rossum <guido@python.org> Actually, the previous batch's comment should have been different;
*this* set of patches is Ka-Ping's final sweep:

The attached patches update the standard library so that all modules
have docstrings beginning with one-line summaries.

A new docstring was added to formatter. The docstring for os.py
was updated to mention nt, os2, ce in addition to posix, dos, mac.
/external/python/cpython2/Lib/locale.py
45e2fbc2e70ef28b1f0327207f33dab3a4e825c5 26-Mar-1998 Guido van Rossum <guido@python.org> Mass check-in after untabifying all files that need it.
/external/python/cpython2/Lib/locale.py
bd1169a93e4c42156e899e2f80a1349e8006da25 19-Nov-1997 Guido van Rossum <guido@python.org> Add Martin von Loewis as the author of this module.
/external/python/cpython2/Lib/locale.py
eef1d4e8b16c7352cc748f19e0481275d4f78291 19-Nov-1997 Guido van Rossum <guido@python.org> User-level locale module. A wrapper around _locale which adds
format(), str(), atof(), and atoi(). The last three are locale
sensitive versions of the corresponding standard functions (only for
numbers though); format() does general %[efg] formatting taking the
locale into account, optionally with thousands grouping.
/external/python/cpython2/Lib/locale.py