Issue527495

classification
Title: Handles ^Z differently
Type: Severity: normal
Components: None Versions:
Milestone:
process
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: Nosy List: kevinbutler, rluse
Priority: low Keywords:

Created on 2002-03-08.19:04:03 by anonymous, last changed 2007-12-24.20:37:26 by rluse.

Messages
msg608 (view) Author: Nobody/Anonymous (nobody) Date: 2002-03-08.19:04:03
On Windows 2000, my input file ended in a control-Z.  
CPython ignored that, JPython read it as a line.

msg609 (view) Author: Kevin J. Butler (kevinbutler) Date: 2003-10-23.23:54:53
Logged In: YES 
user_id=117665

My personal opinion is that this should not be "fixed".
1- Unix CPython does not respect a ctrl-D as EOF
2- Java does not respect a character as EOF on any platform

Test code:
print open( "data", "r" ).readlines()
or
print open( "data", "rb" ).readlines()

With data as (^Z = ctrl-Z or ctrl-D for various tests):
line
^Z
end


msg610 (view) Author: Bob Luse (rluse) Date: 2007-12-24.20:37:26
Here's another problem that can probably be closed, Charlie.
History
Date User Action Args
2002-03-08 19:04:03anonymouscreate