Message146220
| Author |
eric.araujo |
| Recipients |
Santiago.Romero, belopolsky, benjamin.peterson, cgwalters, dexen, doughellmann, eric.araujo, ezio.melotti, fperez, loewis, mark.dickinson, mcepl, nwerneck, orsenthil, r.david.murray, rhettinger, vstinner, wombat |
| Date |
2011年10月23日.05:42:50 |
| SpamBayes Score |
2.601473e-09 |
| Marked as misclassified |
No |
| Message-id |
<1319348571.19.0.524419861853.issue1170@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
The second message in this page reports that StringIO.StringIO works, but when I pass a unicode string with non-ASCII chars there’s a method call that fails because of implicit unicode-to-str conversion:
Traceback (most recent call last):
File "/usr/lib/python2.7/shlex.py", line 150, in read_token
elif nextchar in self.wordchars:
UnicodeDecodeError: 'ascii' codec can't decode byte 0xdf in position 63: ordinal not in range(128)
I’ll try to create a Shlex instance, replace self.wordchars with a decoded version and try again. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2011年10月23日 05:42:51 | eric.araujo | set | recipients:
+ eric.araujo, loewis, rhettinger, mark.dickinson, belopolsky, orsenthil, vstinner, dexen, benjamin.peterson, cgwalters, mcepl, ezio.melotti, doughellmann, r.david.murray, nwerneck, fperez, Santiago.Romero, wombat |
| 2011年10月23日 05:42:51 | eric.araujo | set | messageid: <1319348571.19.0.524419861853.issue1170@psf.upfronthosting.co.za> |
| 2011年10月23日 05:42:50 | eric.araujo | link | issue1170 messages |
| 2011年10月23日 05:42:50 | eric.araujo | create |
|