[ python-Bugs-890705 ] unpack produces incorrect result in certain circumstances

SourceForge.net noreply at sourceforge.net
Wed Feb 4 15:41:54 EST 2004


Bugs item #890705, was opened at 2004-02-04 21:19
Message generated for change (Comment added) made by theller
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=890705&group_id=5470

Category: Windows
>Group: Not a Bug
>Status: Closed
>Resolution: Duplicate
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.

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

>Comment By: Thomas Heller (theller)
Date: 2004-02-04 21:41

Message:
Logged In: YES 
user_id=11105

Have we been too quick?  Closed - this is a duplicate of 890687.

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

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