Message285216
| Author |
vstinner |
| Recipients |
ezio.melotti, vstinner |
| Date |
2017年01月11日.11:32:58 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1484134378.67.0.443227597254.issue29240@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Examples with pep540_cli.py.
Python 3.5:
$ python3 pep540_cli.py
sys.argv: ['pep540_cli.py']
stdin: UTF-8/strict
stdout: UTF-8/strict
stderr: UTF-8/backslashreplace
open(): UTF-8/strict
$ LC_ALL=C python3 pep540_cli.py
sys.argv: ['pep540_cli.py']
stdin: ANSI_X3.4-1968/surrogateescape
stdout: ANSI_X3.4-1968/surrogateescape
stderr: ANSI_X3.4-1968/backslashreplace
open(): ANSI_X3.4-1968/strict
Patched Python 3.7:
$ ./python pep540_cli.py
UTF-8 mode: 0
sys.argv: ['pep540_cli.py']
stdin: UTF-8/strict
stdout: UTF-8/strict
stderr: UTF-8/backslashreplace
open(): UTF-8/strict
$ LC_ALL=C ./python pep540_cli.py
UTF-8 mode: 1
sys.argv: ['pep540_cli.py']
stdin: utf-8/surrogateescape
stdout: utf-8/surrogateescape
stderr: utf-8/backslashreplace
open(): utf-8/surrogateescape
$ ./python -X utf8 pep540_cli.py
UTF-8 mode: 1
sys.argv: ['pep540_cli.py']
stdin: utf-8/surrogateescape
stdout: utf-8/surrogateescape
stderr: utf-8/backslashreplace
open(): utf-8/surrogateescape
$ ./python -X utf8=strict pep540_cli.py
UTF-8 mode: 2
sys.argv: ['pep540_cli.py']
stdin: utf-8/strict
stdout: utf-8/strict
stderr: utf-8/backslashreplace
open(): utf-8/strict |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2017年01月11日 11:32:58 | vstinner | set | recipients:
+ vstinner, ezio.melotti |
| 2017年01月11日 11:32:58 | vstinner | set | messageid: <1484134378.67.0.443227597254.issue29240@psf.upfronthosting.co.za> |
| 2017年01月11日 11:32:58 | vstinner | link | issue29240 messages |
| 2017年01月11日 11:32:58 | vstinner | create |
|