diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2012-02-23 23:37:51 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2012-02-23 23:37:51 (GMT) |
commit | 41a863cb81608c779d60b49e7be8a115816734fc (patch) | |
tree | b59ae94894190d8863ffd2081122db4fe819e003 /Objects/stringlib/stringdefs.h | |
parent | dcb30cf959902fdc3da027c13a99e091d116c273 (diff) | |
download | cpython-41a863cb81608c779d60b49e7be8a115816734fc.zip cpython-41a863cb81608c779d60b49e7be8a115816734fc.tar.gz cpython-41a863cb81608c779d60b49e7be8a115816734fc.tar.bz2 |
Issue #13706: Fix format(int, "n") for locale with non-ASCII thousands separator
* Decode thousands separator and decimal point using PyUnicode_DecodeLocale()
(from the locale encoding), instead of decoding them implicitly from latin1
* Remove _PyUnicode_InsertThousandsGroupingLocale(), it was not used
* Change _PyUnicode_InsertThousandsGrouping() API to return the maximum
character if unicode is NULL
* Replace MIN/MAX macros by Py_MIN/Py_MAX
* stringlib/undef.h undefines STRINGLIB_IS_UNICODE
* stringlib/localeutil.h only supports Unicode
Diffstat (limited to 'Objects/stringlib/stringdefs.h')
-rw-r--r-- | Objects/stringlib/stringdefs.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Objects/stringlib/stringdefs.h b/Objects/stringlib/stringdefs.h index fec9f18..7bb91a7 100644 --- a/Objects/stringlib/stringdefs.h +++ b/Objects/stringlib/stringdefs.h @@ -25,7 +25,5 @@ #define STRINGLIB_CHECK PyBytes_Check #define STRINGLIB_CHECK_EXACT PyBytes_CheckExact #define STRINGLIB_TOSTR PyObject_Str -#define STRINGLIB_GROUPING _PyBytes_InsertThousandsGrouping -#define STRINGLIB_GROUPING_LOCALE _PyBytes_InsertThousandsGroupingLocale #define STRINGLIB_TOASCII PyObject_Repr #endif /* !STRINGLIB_STRINGDEFS_H */ |