[issue1222] locale.format bug if thousand separator is space (french separator as example)

Antoine Pitrou report at bugs.python.org
Wed Mar 18 18:02:32 CET 2009


Antoine Pitrou <pitrou at free.fr> added the comment:

Hi Mark,

> AssertionError: '     4200' != '      4200'
> 
> Any idea what's going on here?

The problem seems to be that the thousands separator on the Solaris
variant of en_US is an empty string (rather than a comma) (*), and
apparently it hits a bug in the padding mechanism (which perhaps assumes
that the thousands separator is always a 1-character string).

(*) (another reason not to use any C locale-based mechanism for
localization, by the way...)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1222>
_______________________________________


More information about the Python-bugs-list mailing list