[issue9511] CharacterEncoderError when reading from sys.stdin from piped input in cmd.exe

2010-08-12 Thread STINNER Victor
STINNER Victor added the comment: > I thought you and...Ezio? were talking about some way to improve > the encoding situation when reading from/writing to a pipe. I don't want to change that. If you come with arguments in favor of changing that (and maybe some ideas to choose the encoding): p

[issue9511] CharacterEncoderError when reading from sys.stdin from piped input in cmd.exe

2010-08-08 Thread R. David Murray
R. David Murray added the comment: It is not a bug as it stands, no, so I've changed the type to feature request. I thought you and...Ezio? were talking about some way to improve the encoding situation when reading from/writing to a pipe. If I'm wrong, you can just close this issue as won't

[issue9511] CharacterEncoderError when reading from sys.stdin from piped input in cmd.exe

2010-08-08 Thread STINNER Victor
STINNER Victor added the comment: If stdin is a pipe, stdin uses ASCII encoding. Do you consider that as a bug? -- ___ Python tracker ___

[issue9511] CharacterEncoderError when reading from sys.stdin from piped input in cmd.exe

2010-08-07 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +loewis, merwok ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue9511] CharacterEncoderError when reading from sys.stdin from piped input in cmd.exe

2010-08-06 Thread R. David Murray
R. David Murray added the comment: This is because python doesn't know the encoding of stdin, and so uses ASCII (I assume that's what 'charmap' is on windows...on my unix box the error message mentions ascii, not charmap). You can tell python to use an alternate encoding by default via the P

[issue9511] CharacterEncoderError when reading from sys.stdin from piped input in cmd.exe

2010-08-04 Thread Peter Boström
New submission from Peter Boström : When reading from piped stdin, python has trouble decoding some special characters. To reproduce, run the following command from cmd.exe: echo ü | C:\Python31\python.exe pycat.py UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 0: c