[ python-Bugs-890705 ] unpack produces incorrect result in certain
circumstances
SourceForge.net
noreply at sourceforge.net
Wed Feb 4 15:21:02 EST 2004
Bugs item #890705, was opened at 2004-02-04 20:19
Message generated for change (Settings changed) made by kneppy
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=890705&group_id=5470
Category: Windows
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Kevin (kneppy)
Assigned to: Thomas Heller (theller)
>Summary: unpack produces incorrect result in certain circumstances
Initial Comment:
When reading a binary datafile that consists of a series
of unsigned integers (32 bit) in big-endian format and
using unpack to read and convert the data to little
endian, long unsigned integers, errors were noted on
both Windows 2000 and Windows XP. The data file
(attached) produced errors on both Windows platforms
when trying to read '26' in big-endian format, but the
same operation would work on the command line. The
same script and datafile were used on the same
machines using cygwin, (and the same version of
Python: 2.3.3) and the results were correct. The script
and datafile also produced expected results on a Linux
box. The script and datafile that can reproduce the
results are attached in a zip file.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=890705&group_id=5470
More information about the Python-bugs-list
mailing list