[issue11246] PyUnicode_FromFormat("%V") decodes the byte string from ISO-8859-1

2011-03-01 Thread STINNER Victor
STINNER Victor added the comment: Fixed in Python 3.3 (r88697) and 3.2 (r88698). Thank you Ray. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue11246] PyUnicode_FromFormat("%V") decodes the byte string from ISO-8859-1

2011-02-21 Thread Ray.Allen
Changes by Ray.Allen : Removed file: http://bugs.python.org/file20818/issue11246.diff ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue11246] PyUnicode_FromFormat("%V") decodes the byte string from ISO-8859-1

2011-02-21 Thread Ray.Allen
Ray.Allen added the comment: Thanks haypo! Here the updated patch, following your comments. -- type: -> behavior Added file: http://bugs.python.org/file20831/issue11246.diff ___ Python tracker __

[issue11246] PyUnicode_FromFormat("%V") decodes the byte string from ISO-8859-1

2011-02-21 Thread STINNER Victor
STINNER Victor added the comment: +text = PyUnicode_FromFormat(b'repr=%V', 'abcdef', b'abcdef') +self.assertEqual(text, 'repr=abcdef') How do you know which argument is used? For example, you should use instead 'abc' and b'xyz'. +text = PyUnicode_FromFormat(b'repr=%V',

[issue11246] PyUnicode_FromFormat("%V") decodes the byte string from ISO-8859-1

2011-02-20 Thread Ray.Allen
Changes by Ray.Allen : -- keywords: +patch Added file: http://bugs.python.org/file20818/issue11246.diff ___ Python tracker ___ ___ Pyt

[issue11246] PyUnicode_FromFormat("%V") decodes the byte string from ISO-8859-1

2011-02-20 Thread Ray.Allen
Ray.Allen added the comment: Yes. The %V should be combination of %U and %s. Here is a patch which fixed this problem. -- ___ Python tracker ___ ___

[issue11246] PyUnicode_FromFormat("%V") decodes the byte string from ISO-8859-1

2011-02-18 Thread STINNER Victor
Changes by STINNER Victor : -- components: +Library (Lib) ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue11246] PyUnicode_FromFormat("%V") decodes the byte string from ISO-8859-1

2011-02-18 Thread STINNER Victor
New submission from STINNER Victor : While testing a patch fixing issue #7330, I found a bug in PyUnicode_FromFormat() in the %V format: it decodes the byte string from ISO-8859-1, whereas I would expect that the string is decodes from UTF-8, as the "%s" format. -- messages: 128816 no