Author vstinner
Recipients Arfrever, Ariel.Ben-Yehuda, berker.peksag, chris.jerdonek, eric.smith, ezio.melotti, loewis, serhiy.storchaka, vstinner
Date 2012-09-20.11:45:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1348141520.67.0.537604536279.issue15276@psf.upfronthosting.co.za>
In-reply-to
Content
I fixed a similar bug in Python 3.3: issue #13706.

changeset:   75231:f89e2f4cda88
user:        Victor Stinner <victor.stinner@haypocalc.com>
date:        Fri Feb 24 00:37:51 2012 +0100
files:       Include/unicodeobject.h Lib/test/test_format.py Objects/stringlib/asciilib.h Objects/stringlib/localeutil.h Objects/stringlib/stringdefs.h Objects/stringlib/ucs1lib.h 
description:
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
History
Date User Action Args
2012-09-20 11:45:20vstinnersetrecipients: + vstinner, loewis, eric.smith, ezio.melotti, Arfrever, chris.jerdonek, berker.peksag, serhiy.storchaka, Ariel.Ben-Yehuda
2012-09-20 11:45:20vstinnersetmessageid: <1348141520.67.0.537604536279.issue15276@psf.upfronthosting.co.za>
2012-09-20 11:45:20vstinnerlinkissue15276 messages
2012-09-20 11:45:19vstinnercreate