[ python-Bugs-1672853 ] Error reading files larger than 4GB
SourceForge.net
noreply at sourceforge.net
Thu Apr 26 03:40:37 CEST 2007
Bugs item #1672853, was opened at 2007-03-03 03:01
Message generated for change (Comment added) made by joearmbruster
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1672853&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: Windows
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Case Van Horsen (casevh)
Assigned to: Nobody/Anonymous (nobody)
Summary: Error reading files larger than 4GB
Initial Comment:
When reading test files larger than 4GB, sometimes two lines are merged into a single line. The problem is reproducible on Windows 2K SP4 with both Python 2.4 and 2.5. It does not appear to occur on Linux.
I have attached a test case that creates the problem.
----------------------------------------------------------------------
Comment By: Joseph Armbruster (joearmbruster)
Date: 2007-04-25 21:40
Message:
Logged In: YES
user_id=1643128
Originator: NO
URL: http://svn.python.org/projects/python/trunk
Revision: 54922
Note: Reproduced Error using test application on the following system
OS Name: Microsoft Windows XP Professional
OS Version: 5.1.2600 Service Pack 2 Build 2600
Try modifying line 13:
fh = open(fname, 'r')
to:
fh = open(fname, 'rb')
and notice the behavior.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1672853&group_id=5470
More information about the Python-bugs-list
mailing list