Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | gh-94226: Remove the locale.format() function (#94229) | Victor Stinner | 2022-06-26 | 1 | -16/+1 |
| | | | | | | | Remove the locale.format() function, deprecated in Python 3.7: use locale.format_string() instead. Remove TestFormatPatternArg test case: it is irrelevant for locale.format_string() which accepts complex formats. | ||||
* | gh-90817: Deprecate explicitly locale.resetlocale() (#93196) | Victor Stinner | 2022-05-25 | 1 | -1/+11 |
| | | | | The function was already deprecated in Python 3.11 since it calls locale.getdefaultlocale() which was deprecated in Python 3.11. | ||||
* | gh-91954: Emit EncodingWarning from locale and subprocess (GH-91977) | Inada Naoki | 2022-04-30 | 1 | -0/+11 |
| | | | locale.getpreferredencoding() and subprocess.Popen() emit EncodingWarning | ||||
* | gh-91156: Fix `encoding="locale"` in UTF-8 mode (GH-70056) | Inada Naoki | 2022-04-14 | 1 | -1/+1 |
| | |||||
* | bpo-47000: Add `locale.getencoding()` (GH-32068) | Inada Naoki | 2022-04-09 | 1 | -12/+12 |
| | |||||
* | bpo-46659: Deprecate locale.getdefaultlocale() (GH-31206) | Victor Stinner | 2022-02-22 | 1 | -0/+6 |
| | | | | | | The locale.getdefaultlocale() function is deprecated and will be removed in Python 3.13. Use locale.setlocale(), locale.getpreferredencoding(False) and locale.getlocale() functions instead. | ||||
* | bpo-46565: `del` loop vars that are leaking into module namespaces (GH-30993) | Nikita Sobolev | 2022-02-03 | 1 | -0/+1 |
| | |||||
* | bpo-34311: Add locale.localize (GH-15275) | Cédric Krier | 2021-04-12 | 1 | -3/+13 |
| | | | | * Add method localize to the locale module * Update the documentation of the locale module | ||||
* | bpo-42208: Add _locale._get_locale_encoding() (GH-23052) | Victor Stinner | 2020-10-31 | 1 | -43/+39 |
| | | | | | | * Add a new _locale._get_locale_encoding() function to get the current locale encoding. * Modify locale.getpreferredencoding() to use it. * Remove the _bootlocale module. | ||||
* | bpo-38536: locale: Remove trailing space in formatted currency (GH-16864) | Inada Naoki | 2020-01-20 | 1 | -0/+2 |
| | |||||
* | bpo-18378: Recognize "UTF-8" as a valid name in locale._parse_localename ↵ | Ronald Oussoren | 2019-08-29 | 1 | -0/+4 |
| | | | | (GH-14736) | ||||
* | Remove mojibake in the locale aliases mapping. (GH-6716) | Serhiy Storchaka | 2018-05-06 | 1 | -2/+0 |
| | |||||
* | bpo-20087: Update locale alias mapping with glibc 2.27 supported locales. ↵ | Serhiy Storchaka | 2018-05-06 | 1 | -4/+53 |
| | | | | (ПР-6708) | ||||
* | bpo-29240: PEP 540: Add a new UTF-8 Mode (#855) | Victor Stinner | 2017-12-13 | 1 | -0/+6 |
| | | | | | | | | | | | | | | | | | | | | | | * Add -X utf8 command line option, PYTHONUTF8 environment variable and a new sys.flags.utf8_mode flag. * If the LC_CTYPE locale is "C" at startup: enable automatically the UTF-8 mode. * Add _winapi.GetACP(). encodings._alias_mbcs() now calls _winapi.GetACP() to get the ANSI code page * locale.getpreferredencoding() now returns 'UTF-8' in the UTF-8 mode. As a side effect, open() now uses the UTF-8 encoding by default in this mode. * Py_DecodeLocale() and Py_EncodeLocale() now use the UTF-8 encoding in the UTF-8 Mode. * Update subprocess._args_from_interpreter_flags() to handle -X utf8 * Skip some tests relying on the current locale if the UTF-8 mode is enabled. * Add test_utf8mode.py. * _Py_DecodeUTF8_surrogateescape() gets a new optional parameter to return also the length (number of wide characters). * pymain_get_global_config() and pymain_set_global_config() now always copy flag values, rather than only copying if the new value is greater than the old value. | ||||
* | bpo-30152: Reduce the number of imports for argparse. (#1269) | Serhiy Storchaka | 2017-09-25 | 1 | -3/+3 |
| | |||||
* | bpo-30144: Import collections ABC from collections.abc rather than ↵ | Serhiy Storchaka | 2017-04-24 | 1 | -2/+2 |
| | | | | collections. (#1263) | ||||
* | bpo-29762: More use "raise from None". (#569) | Serhiy Storchaka | 2017-04-05 | 1 | -1/+2 |
| | | | This hides unwanted implementation details from tracebacks. | ||||
* | test_locale now ignores the DeprecationWarning (#977) | Victor Stinner | 2017-04-03 | 1 | -1/+1 |
| | | | | | Don't fail anymore if test run with python3 -Werror. Fix also deprecation message: add a space. | ||||
* | bpo-10379: add 'monetary' to format_string, deprecate format | Garvit Khatri | 2017-03-28 | 1 | -20/+25 |
| | | | | | | | Add the 'monetary' parameter to format_string so that all uses of format can be converted to format_string. Adjust the documentation accordingly, and add a deprecation warning when format is used. | ||||
* | bpo-20087: Revert "make the glibc alias table take precedence over the X11 ↵ | Benjamin Peterson | 2017-03-20 | 1 | -105/+41 |
| | | | | | one (#422)" (#713) This reverts commit 02371e0ed1ee82ec73e7d363bcf2ed40cde1397a. | ||||
* | make the glibc alias table take precedence over the X11 one (#422) | Benjamin Peterson | 2017-03-08 | 1 | -41/+105 |
| | | | bpo-20087 | ||||
* | Issue #28596: The preferred encoding is UTF-8 on Android. | Xavier de Gaye | 2016-12-17 | 1 | -9/+15 |
| | |||||
* | Issue #27076: Merge spelling from 3.5 | Martin Panter | 2016-05-26 | 1 | -1/+1 |
|\ | |||||
| * | Issue #27076: Doc, comment and tests spelling fixes | Martin Panter | 2016-05-26 | 1 | -1/+1 |
| | | | | | | | | Most fixes to Doc/ and Lib/ directories by Ville Skyttä. | ||||
* | | merge 3.5. | Senthil Kumaran | 2016-04-13 | 1 | -9/+8 |
|\ \ | |/ | | | | | [minor] - Correct the docstring of locale.str. Patch by poleto. | ||||
| * | [minor] - Correct the docstring of locale.str. Patch by poleto. | Senthil Kumaran | 2016-04-13 | 1 | -9/+8 |
| | | |||||
* | | locale.delocalize(): only call localeconv() once | Victor Stinner | 2015-11-03 | 1 | -2/+6 |
|/ | |||||
* | Issue #22681: Added support for the koi8_t encoding. | Serhiy Storchaka | 2015-05-12 | 1 | -0/+1 |
| | |||||
* | Issue #22682: Added support for the kz1048 encoding. | Serhiy Storchaka | 2015-05-12 | 1 | -0/+1 |
| | |||||
* | Issue #13918: Provide a locale.delocalize() function which can remove | Antoine Pitrou | 2014-10-23 | 1 | -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 Storchaka | 2014-10-02 | 1 | -1/+11 |
| | |||||
* | Issue #20076: Remove just added the sr_rs.utf8@latn alias because it is | Serhiy Storchaka | 2014-10-02 | 1 | -1/+0 |
| | | | | derived from sr_rs@latin. | ||||
* | Issue #20076: Added non derived UTF-8 aliases to locale aliases table. | Serhiy Storchaka | 2014-10-01 | 1 | -0/+9 |
| | |||||
* | Issue #20079: Added locales supported in glibc 2.18 to locale alias table. | Serhiy Storchaka | 2014-10-01 | 1 | -0/+99 |
| | |||||
* | Issue #20046: Locale alias table no longer contains entities which can be | Serhiy Storchaka | 2013-12-26 | 1 | -426/+40 |
| | | | | calculated. Generalized support of the euro modifier. | ||||
* | Issue #20027: Fixed locale aliases for devanagari locales. | Serhiy Storchaka | 2013-12-26 | 1 | -3/+4 |
|\ | |||||
| * | Issue #20027: Fixed locale aliases for devanagari locales. | Serhiy Storchaka | 2013-12-26 | 1 | -3/+4 |
| | | |||||
* | | Issue #20034: Updated alias mapping to most recent locale.alias file | Serhiy Storchaka | 2013-12-20 | 1 | -11/+43 |
|\ \ | |/ | | | | | from X.org distribution using makelocalealias.py. | ||||
| * | Issue #20034: Updated alias mapping to most recent locale.alias file | Serhiy Storchaka | 2013-12-20 | 1 | -11/+43 |
| | | | | | | | | from X.org distribution using makelocalealias.py. | ||||
| * | Issue #5815: Fixed support for locales with modifiers. Fixed support for | Serhiy Storchaka | 2013-12-19 | 1 | -43/+75 |
| | | | | | | | | locale encodings with hyphens. | ||||
* | | Issue #5815: Fixed support for locales with modifiers. Fixed support for | Serhiy Storchaka | 2013-12-19 | 1 | -43/+75 |
| | | | | | | | | locale encodings with hyphens. | ||||
* | | Issue #9548: Add a minimal "_bootlocale" module that is imported by the _io ↵ | Antoine Pitrou | 2013-10-11 | 1 | -16/+5 |
| | | | | | | | | module instead of the full locale module. | ||||
* | | Issue #18200: Back out usage of ModuleNotFoundError (8d28d44f3a9a) | Brett Cannon | 2013-07-04 | 1 | -1/+1 |
| | | |||||
* | | Issue #18200: Update the stdlib (except tests) to use | Brett Cannon | 2013-06-14 | 1 | -1/+1 |
|/ | | | | ModuleNotFoundError. | ||||
* | Fix last remaining references to ex-devguide | Éric Araujo | 2011-11-29 | 1 | -2/+1 |
| | |||||
* | Issue #3067: Enhance the documentation and docstring of locale.setlocale() | Petri Lehtinen | 2011-11-05 | 1 | -2/+3 |
| | |||||
* | Issue #3067: Fix the error raised by locale.setlocale() | Petri Lehtinen | 2011-11-04 | 1 | -7/+11 |
| | |||||
* | Closes #13283: removal of two unused variable in locale.py | Jesus Cea | 2011-10-31 | 1 | -2/+0 |
| | |||||
* | (merge) Fix #10154 and #10090: locale normalizes the UTF-8 encoding to ↵ | Ronald Oussoren | 2011-05-17 | 1 | -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 Oussoren | 2011-05-17 | 1 | -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. |