[issue1222] locale.format bug if thousand separator is space (french separator as example)
Antoine Pitrou
report at bugs.python.org
Sat Jan 12 18:18:21 CET 2008
Antoine Pitrou added the comment:
Just tried on 2.5.1 and on trunk, I can't reproduce it. On both I get:
>>> import locale
>>> locale.setlocale(locale.LC_NUMERIC, "fr_FR.UTF-8")
'fr_FR.UTF-8'
>>> locale.format("%9.2f", 12345.67, True)
' 12345,67'
>>> locale.format("%.2f", 12345.67, True)
'12345,67'
>>> locale.localeconv()['thousands_sep']
''
Which means that there is no thousands separator for the French locale
on my system (a Mandriva Linux box).
----------
nosy: +pitrou
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1222>
__________________________________
More information about the Python-bugs-list
mailing list