I don't think issue 2522 has anything to do with the reported problem.
That issue dealt with someone calling locale.format in an inappropriate
way, and the fix disallows the inappropriate call.  The call in the
traceback is appropriate, so the fix from 2522 should not affect the
code having the problem.

This problem is instead related to this issue:
http://bugs.python.org/issue7327.  The root problem is that python2's
float formatting machinery doesn't know now to handle the Czech no-
break-space, which is a multibyte charater.  It returns it as if it were
normal ascii codepoints, but it isn't.  So when 'unicode'  tries to
convert the presumed ASCII string to unicode, it fails.

As noted in the issue, this isn't going to get fixed in python2.  It
could be worked around in the code that is using grouping=True by doing
this:

      locale.format("%d", val,
grouping=True).decode(locale.getpreferredencoding())

** Bug watch added: Python Roundup #7327
   http://bugs.python.org/issue7327

-- 
Unable to install a plugin
https://bugs.launchpad.net/bugs/525901
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to