Message118762
| Author |
vstinner |
| Recipients |
vstinner |
| Date |
2010年10月15日.12:34:46 |
| SpamBayes Score |
0.0004411035 |
| Marked as misclassified |
No |
| Message-id |
<1287146091.4.0.492257332187.issue10114@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Example:
$ ./python
Python 3.2a3+ (py3k, Oct 15 2010, 14:31:59)
>>> compile('', 'abc\uDC80', 'exec')
...
UnicodeEncodeError: 'utf-8' codec can't encode character '\udc80' in position 3: surrogates not allowed
Attached patch encodes manually the filename to utf-8 with surrogateescape.
I found this problem while testing Python with an ASCII locale encoding (LANG=C ./python Lib/test/regrtest.py). Example:
$ LANG=C ./python -m base64 -e setup.py
...
UnicodeEncodeError: 'utf-8' codec can't encode character '\udcc3' ... |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2010年10月15日 12:34:51 | vstinner | set | recipients:
+ vstinner |
| 2010年10月15日 12:34:51 | vstinner | set | messageid: <1287146091.4.0.492257332187.issue10114@psf.upfronthosting.co.za> |
| 2010年10月15日 12:34:50 | vstinner | link | issue10114 messages |
| 2010年10月15日 12:34:49 | vstinner | create |
|