This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: unpack produces incorrect result in certain circumstances
Type: Stage:
Components: Windows Versions:
process
Status: closed Resolution: duplicate
Dependencies: Superseder:
Assigned To: theller Nosy List: kneppy, theller
Priority: normal Keywords:

Created on 2004-02-04 20:19 by kneppy, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
unpack_error.zip kneppy, 2004-02-04 20:19 script and datafile to reproduce error
Messages (2)
msg19914 - (view) Author: Kevin (kneppy) Date: 2004-02-04 20:19
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.
msg19915 - (view) Author: Thomas Heller (theller) * (Python committer) Date: 2004-02-04 20:41
Logged In: YES 
user_id=11105

Have we been too quick?  Closed - this is a duplicate of 890687.
History
Date User Action Args
2022-04-11 14:56:02adminsetgithub: 39902
2004-02-04 20:19:38kneppycreate