Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue #6656: fix locale.format_string to handle escaped percents and mappings. | R. David Murray | 2010-04-26 | 1 | -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` module | Antoine Pitrou | 2010-04-11 | 1 | -13/+89 |
| | | | | to cover recent locale changes and additions. | ||||
* | Issue #6620: Slightly safer code for _grouping_intervals in the locale | Mark Dickinson | 2009-08-04 | 1 | -0/+3 |
| | | | | | module. Fixes a 'possible use before assignment' warning from pylint. Thanks Vincent Legoll. | ||||
* | backport r73268 | Benjamin Peterson | 2009-06-07 | 1 | -3/+1 |
| | |||||
* | Update the Windows locale mapping with the ones introduced with Vista. | Jeroen Ruigrok van der Werven | 2009-05-08 | 1 | -13/+44 |
| | |||||
* | Add ISO-8859-16. | Jeroen Ruigrok van der Werven | 2009-05-08 | 1 | -0/+1 |
| | |||||
* | Be more explicit about the error we are catching. | Jeroen Ruigrok van der Werven | 2009-05-06 | 1 | -1/+1 |
| | | | | Requested by: Antoine Pitrou | ||||
* | Wrap getpreferredencoding()'s use of setlocale in a try/except to prevent | Jeroen Ruigrok van der Werven | 2009-05-06 | 1 | -1/+4 |
| | | | | | | us from raising an exception when the locale is invalid. Issue #1443504 | ||||
* | Fix issue 2522. locale.format now checks that it is passed | R. David Murray | 2009-04-01 | 1 | -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_locale | Antoine Pitrou | 2009-03-18 | 1 | -1/+1 |
| | |||||
* | Issue #1222: locale.format() bug when the thousands separator is a space ↵ | Antoine Pitrou | 2009-03-14 | 1 | -32/+51 |
| | | | | character. | ||||
* | convert test_locale to unittest, and add a mechanism to override localconv() ↵ | Antoine Pitrou | 2008-07-25 | 1 | -0/+16 |
| | | | | results for further testing (#1864, #1222) | ||||
* | Update the locale module alias table. | Marc-André Lemburg | 2008-05-30 | 1 | -19/+160 |
| | | | | Closes #3011. | ||||
* | Patch #1710352: add missing public functions to locale.__all__. | Georg Brandl | 2007-05-01 | 1 | -3/+5 |
| | |||||
* | Whitespace normalization. | Tim Peters | 2006-05-18 | 1 | -1/+1 |
| | |||||
* | Patch #1180296: improve locale string formatting functions | Georg Brandl | 2006-05-17 | 1 | -44/+126 |
| | |||||
* | Whitespace normalization. | Tim Peters | 2006-01-20 | 1 | -1/+1 |
| | |||||
* | Readd bug report note. | Georg Brandl | 2006-01-20 | 1 | -0/+6 |
| | |||||
* | Bug #1371247: Update Windows LCIDs in locale.py. | Georg Brandl | 2006-01-20 | 1 | -32/+179 |
| | |||||
* | - Patch #1166948: locale.py: Prefer LC_ALL, LC_CTYPE and LANG over LANGUAGE | Matthias Klose | 2005-09-20 | 1 | -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 OS | Raymond Hettinger | 2005-01-01 | 1 | -1/+1 |
| | | | | (Contributed by Jiwon Seo.) | ||||
* | Correct mapping of Python codec name to C encoding name for UTF-8 (the C lib | Marc-André Lemburg | 2004-12-13 | 1 | -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 using | Marc-André Lemburg | 2004-12-10 | 1 | -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öwis | 2004-07-26 | 1 | -1/+1 |
| | |||||
* | atof: correct parameter name | Skip Montanaro | 2004-04-10 | 1 | -3/+3 |
| | |||||
* | Replace sequential split/join calls on strings with a single replace call. | Brett Cannon | 2004-03-23 | 1 | -5/+3 |
| | | | | Thanks Andrew Gaul. | ||||
* | Support '' as the argument for the setlocale emulation. Fixes #678259. | Martin v. Löwis | 2003-03-30 | 1 | -1/+1 |
| | |||||
* | Whitespace normalization. | Tim Peters | 2002-11-09 | 1 | -2/+2 |
| | |||||
* | This stopped working on Windows, due to a reference to the non-existent | Tim Peters | 2002-11-05 | 1 | -1/+1 |
| | | | | | | _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>). | ||||
* | Add getpreferredencoding. Support @euro modifiers. Fixes #554676. | Martin v. Löwis | 2002-11-03 | 1 | -0/+41 |
| | | | | The @euro part is backported to 2.2.3. | ||||
* | point people to the Python bug tracker, rather than to a mail | Fredrik Lundh | 2002-10-19 | 1 | -4/+7 |
| | | | | account I hardly ever use... | ||||
* | eliminate unqualified except when checking for presence of LC_MESSAGES | Skip Montanaro | 2002-03-25 | 1 | -1/+1 |
| | | | | see bug 411881 | ||||
* | Remove some dead code (PyChecker) | Andrew M. Kuchling | 2001-08-13 | 1 | -3/+1 |
| | |||||
* | Implement Mark Favas's suggestion. There's a clear bug in _group(): | Guido van Rossum | 2001-04-16 | 1 | -1/+1 |
| | | | | | | | | | | 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. | ||||
* | Patch #415777: new grouping strategy. | Martin v. Löwis | 2001-04-13 | 1 | -10/+30 |
| | | | | | | | | | 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. | ||||
* | setlocale(): In _locale-missing compatibility function, string | Barry Warsaw | 2001-03-23 | 1 | -2/+1 |
| | | | | comparison should be done with != instead of "is not". | ||||
* | String method conversion. | Eric S. Raymond | 2001-02-09 | 1 | -12/+12 |
| | |||||
* | test___all__ was failing on WIndows because locale.py doesn't really | Tim Peters | 2001-01-24 | 1 | -3/+10 |
| | | | | | know which names it exports. Didn't fix its ignorance, but patched over the consequence. | ||||
* | a few more modules get __all__ | Skip Montanaro | 2001-01-24 | 1 | -0/+5 |
| | |||||
* | In format(), consider sign only after grouping. | Martin v. Löwis | 2001-01-21 | 1 | -4/+9 |
| | | | | Suggested by Kevin Jacobs in bug report #129417. | ||||
* | Spelling fixes supplied by Rob W. W. Hooft. All these are fixes in either | Thomas Wouters | 2000-07-16 | 1 | -1/+1 |
| | | | | | | | | | | 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 ;) | ||||
* | -- removed get_default compatibility kludge | Fredrik Lundh | 2000-07-10 | 1 | -2/+3 |
| | | | | -- added a few extra comments to locale.py | ||||
* | - repaired locale.py for non-windows platforms. the try/except | Fredrik Lundh | 2000-07-09 | 1 | -2/+5 |
| | | | | | checked for the wrong exception. my fault. sorry. (first reported by Alex Coventry) | ||||
* | - merged setlocale and set_locale. the internal setlocale | Fredrik Lundh | 2000-07-09 | 1 | -92/+159 |
| | | | | | | | | | | | | | | | | | | 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) | ||||
* | typos fixed by Rob Hooft | Jeremy Hylton | 2000-06-28 | 1 | -2/+2 |
| | |||||
* | Marc-Andre Lemburg <mal@lemburg.com>: | Marc-André Lemburg | 2000-06-08 | 1 | -3/+61 |
| | | | | | | 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. | ||||
* | Marc-Andre Lemburg <mal@lemburg.com>: | Marc-André Lemburg | 2000-06-07 | 1 | -11/+505 |
| | | | | | | 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. | ||||
* | Actually, the previous batch's comment should have been different; | Guido van Rossum | 2000-02-04 | 1 | -1/+2 |
| | | | | | | | | | | *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. | ||||
* | Mass check-in after untabifying all files that need it. | Guido van Rossum | 1998-03-26 | 1 | -18/+18 |
| | |||||
* | Add Martin von Loewis as the author of this module. | Guido van Rossum | 1997-11-19 | 1 | -0/+1 |
| |