STINNER Victor <victor.stin...@haypocalc.com> added the comment: My patch converts the format string to unicode using the default encoding. It's inconsistent with str%args: str%args converts str to unicode using the ASCII charset (if a least one argument is an unicode string), not the default encoding.
>>> "\xff%s" % u'\xe9' ... UnicodeDecodeError: 'ascii' codec can't decode byte 0xff in position 0: ordinal not in range(128) ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue7300> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com