[ python-Bugs-890687 ] upack fails under certain conditions on
Windows
SourceForge.net
noreply at sourceforge.net
Wed Feb 4 14:56:50 EST 2004
Bugs item #890687, was opened at 2004-02-04 20:44
Message generated for change (Comment added) made by theller
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=890687&group_id=5470
Category: Windows
Group: Python 2.3
>Status: Closed
>Resolution: Invalid
Priority: 5
Submitted By: Kevin (kneppy)
Assigned to: Thomas Heller (theller)
Summary: upack fails under certain conditions on Windows
Initial Comment:
When using unpack to decode and swap byte orders for
a binary file that consists of a series of unsigned
integers (big-endian 32bit format) on a Windows 2000
& XP machine, a false result is returned for certain
values. The script failed reading the first value with the
number 26 in big-endian format ('\x00\x00\x00\x1a')
The same script and datafile worked fine using cygwin's
version of python on the same machines, and also
worked correctly on a Linux machine. The attached files
should be able to reproduce the behavior.
----------------------------------------------------------------------
>Comment By: Thomas Heller (theller)
Date: 2004-02-04 20:56
Message:
Logged In: YES
user_id=11105
This is not a bug. To read binary files on Windows, you
must open them with mode 'rb'.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=890687&group_id=5470
More information about the Python-bugs-list
mailing list