Bugs item #1606233, was opened at 2006-11-30 12:51
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1606233&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Library
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Bill Wallace (wayfarer3130)
Assigned to: Nobody/Anonymous (nobody)
Summary: readline on popen3 file returns empty string before end

Initial Comment:
When readline encounters some binary data (I'm not sure which character causes 
this) in a stream opened with popen3, it returns the empty string indicating 
end of file BEFORE the file is actually finished.  This causes programs to 
terminate early.  The exact same file as a local file opened in "r" mode does 
not have this behaviour.

The stream is created using:
strm1, strm2, strm3 = popen2.popen3("cvs log")
and the problem is that one of the cvs log messages I'm looking at has some 
garabage data in it - I think it has some unix end of line's, but I'm not sure 
exactly what causes this.

The work-around is to readline another time to see if it returns '' again - 
this allows it to continue reading successfully.
I can attach a portion of the file if that would help, or do an od -x on the 
section that causes the problem.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1606233&group_id=5470
_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to