Neal Norwitz
fc76d633e8
- 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.
2006-01-10 06:03:13 +00:00
..
2006-01-08 06:13:44 +00:00
2005-12-10 18:50:16 +00:00
2005-12-18 08:02:38 +00:00
2001-08-29 23:54:21 +00:00
2005-12-10 18:50:16 +00:00
2003-10-19 18:30:01 +00:00
2005-10-20 19:59:25 +00:00
2005-12-10 18:50:16 +00:00
2005-12-10 18:50:16 +00:00
2004-03-15 15:52:22 +00:00
2006-01-01 01:19:23 +00:00
2005-12-11 20:55:10 +00:00
2006-01-08 06:13:13 +00:00
2006-01-08 01:11:25 +00:00
2005-10-21 14:58:06 +00:00
2005-12-10 18:50:16 +00:00
2005-08-13 03:29:00 +00:00
2005-12-10 18:50:16 +00:00
2005-09-24 21:23:05 +00:00
2005-12-10 18:50:16 +00:00
2005-09-23 17:14:22 +00:00
2005-12-10 18:50:16 +00:00
2005-12-10 18:50:16 +00:00
2005-12-10 18:50:16 +00:00
2005-12-10 18:50:16 +00:00
2005-11-13 18:55:39 +00:00
2005-09-24 21:23:05 +00:00
2006-01-08 06:13:44 +00:00
2005-08-26 06:42:30 +00:00
2005-12-10 18:50:16 +00:00
2005-12-10 18:50:16 +00:00
2005-12-10 18:50:16 +00:00
2006-01-02 02:46:54 +00:00
2005-10-20 19:06:35 +00:00
2006-01-10 06:03:13 +00:00
2004-08-04 07:38:35 +00:00
2006-01-08 06:13:44 +00:00