Issue224028

classification
Title: Bad sys.stdin.read(x) in some circumstances
Type: Severity: normal
Components: Core Versions:
Milestone:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: bckfnn, zenzen
Priority: normal Keywords:

Created on 2000-12-01.11:17:27 by zenzen, last changed 2000-12-04.21:54:06 by bckfnn.

Messages
msg219 (view) Author: Stuart Bishop (zenzen) Date: 2000-12-01.11:17:27
Found this when trying to use pickle.

sys.stdin.read(1) sometimes reads in a lot, rather than one byte.

#!/bin/env jython
import sys
print sys.stdin.read(1)

% jython test.py < ~/tmp/fromc
S'Hi Mom'
p0
.

However, the same script works fine if data is entered by typing rather than redirection.
msg220 (view) Author: Finn Bock (bckfnn) Date: 2000-12-04.21:54:06
Fixed PyFile.java rev 2.11.
History
Date User Action Args
2000-12-01 11:17:27zenzencreate