summaryrefslogtreecommitdiff
path: root/Objects/stringlib/undef.h
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2012-02-24 00:37:51 +0100
committerVictor Stinner <victor.stinner@haypocalc.com>2012-02-24 00:37:51 +0100
commit41a863cb81608c779d60b49e7be8a115816734fc (patch)
treeb59ae94894190d8863ffd2081122db4fe819e003 /Objects/stringlib/undef.h
parentdcb30cf959902fdc3da027c13a99e091d116c273 (diff)
downloadcpython-git-41a863cb81608c779d60b49e7be8a115816734fc.tar.gz
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/undef.h')
-rw-r--r--Objects/stringlib/undef.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/stringlib/undef.h b/Objects/stringlib/undef.h
index fd87e56d36..9310204178 100644
--- a/Objects/stringlib/undef.h
+++ b/Objects/stringlib/undef.h
@@ -7,5 +7,5 @@
#undef STRINGLIB_NEW
#undef STRINGLIB_RESIZE
#undef _Py_InsertThousandsGrouping
-#undef _Py_InsertThousandsGroupingLocale
+#undef STRINGLIB_IS_UNICODE