[issue15276] unicode format does not really work in Python 2.x
STINNER Victor
report at bugs.python.org
Mon Nov 5 00:45:38 CET 2012
STINNER Victor added the comment:
"If we don't fix this (I'm leaning that way myself), I think we should somehow document the limitation. There are ways to acknowledge the limitation without getting into the specifics of this particular issue."
I agree to documentation the limitation and close this issue as "wontfix".
A workaround is to format as a bytes string, and then decode the result from the locale encoding. It looks like locale.getpreferredencoding(True) should be used, not locale.getpreferredencoding(False).
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15276>
_______________________________________
More information about the Python-bugs-list
mailing list