Message100771
| Author |
vstinner |
| Recipients |
doerwalter, eric.smith, ezio.melotti, pablomouzo, vstinner |
| Date |
2010年03月09日.23:50:03 |
| SpamBayes Score |
0.00023270337 |
| Marked as misclassified |
No |
| Message-id |
<1268178605.83.0.110610602296.issue7300@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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) |
|