Message285277
| Author |
vstinner |
| Recipients |
ezio.melotti, methane, vstinner |
| Date |
2017年01月11日.23:00:07 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1484175607.54.0.0577289957782.issue29240@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Hum, pep540-3.patch doesn't work if the locale encoding is different than ASCII and UTF-8. argv must be reencoded:
$ LC_ALL=fr_FR ./python -X utf8 -c 'import sys; print(ascii(sys.argv))' $(echo -ne "\xff")
['-c', '\xff']
The result should not depend on the locale, it should be the same than:
$ LC_ALL=fr_FR.utf8 ./python -X utf8 -c 'import sys; print(ascii(sys.argv))' $(echo -ne "\xff")
['-c', '\udcff']
$ LC_ALL=C ./python -X utf8 -c 'import sys; print(ascii(sys.argv))' $(echo -ne "\xff")
['-c', '\udcff'] |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2017年01月11日 23:00:07 | vstinner | set | recipients:
+ vstinner, ezio.melotti, methane |
| 2017年01月11日 23:00:07 | vstinner | set | messageid: <1484175607.54.0.0577289957782.issue29240@psf.upfronthosting.co.za> |
| 2017年01月11日 23:00:07 | vstinner | link | issue29240 messages |
| 2017年01月11日 23:00:07 | vstinner | create |
|