diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2006-01-10 06:03:13 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2006-01-10 06:03:13 (GMT) |
commit | fc76d633e8017fd948bc2363738cbdea41586e21 (patch) | |
tree | 7015f5d5c57eec77290891b156fa1d2ffa14e06d /Misc | |
parent | ab92afd100a4406cd296d699a69184b74abe4cf7 (diff) | |
download | cpython-fc76d633e8017fd948bc2363738cbdea41586e21.zip cpython-fc76d633e8017fd948bc2363738cbdea41586e21.tar.gz cpython-fc76d633e8017fd948bc2363738cbdea41586e21.tar.bz2 |
- Patch #1400181, fix unicode string formatting to not use the locale.
This is how string objects work. u'%f' could use , instead of .
for the decimal point. Now both strings and unicode always use periods.
This is the code that would break:
import locale
locale.setlocale(locale.LC_NUMERIC, 'de_DE')
u'%.1f' % 1.0
assert '1.0' == u'%.1f' % 1.0
I couldn't create a test case which fails, but this fixes the problem.
Will backport.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -12,6 +12,10 @@ What's New in Python 2.5 alpha 1? Core and builtins ----------------- +- Patch #1400181, fix unicode string formatting to not use the locale. + This is how string objects work. u'%f' could use , instead of . + for the decimal point. Now both strings and unicode always use periods. + - Bug #1244610, #1392915, fix build problem on OpenBSD 3.7 and 3.8. configure would break checking curses.h. |