[issue9126] errors='replace' does not work at Windows command line

2010-07-01 Thread John Van Praag
John Van Praag added the comment: According to the documentation of the open function: errors is an optional string that specifies how encoding and decoding errors are to be handled–this cannot be used in binary mode. Pass 'strict' to raise a ValueError exception if there is an enco

[issue9029] errors='replace' works in IDLE, fails at Windows command line.

2010-06-30 Thread John Van Praag
John Van Praag added the comment: I just now resubmitted, with a text file and program demonstrating the problem: Issue9126. I am new to submitting Python bug reports and I would like to do it right. I found I could only attach 1 file to the bug report. However, I had two files: The text file

[issue9126] errors='replace' does not work at Windows command line

2010-06-30 Thread John Van Praag
New submission from John Van Praag : The declaration errors='replace' works from within IDLE but not at the Windows command line. I am attaching a program and text file that demonstrate the problem. The error shows up at the Windows command line as follows: C:\Users\John\Docume

[issue9029] errors='replace' works in IDLE, fails at Windows command line.

2010-06-18 Thread John Van Praag
New submission from John Van Praag : Platforms: Windows Vista Ultimate 64 bit Python v3.1.2 Goal is to read a tab-separated CSV file. Some records have garbage characters in them. The following code fragment works when the program is run in IDLE, but fails when run from the Windows command

[issue8378] PYTHONSTARTUP broken on Windows

2010-04-12 Thread John Van Praag
New submission from John Van Praag : The PYTHONSTARTUP environment variable does not work--does not import the indicated startup file--when IDLE is started under Windows. I have tested under Windows XP SP2, and under Windows Vista Ultimate 64 bit. The os.environ variable does list the startup

[issue6842] program run in interpreter, fails at command line

2009-09-05 Thread John Van Praag
New submission from John Van Praag : My platform: Win XP. Program fibo.py from the tutorial runs correctly in the interpreter. When I run it from the command line I get the following error: file "fibo.py" line 6 print(b, end=' ') ^ -- components: Wi