Re: [Pyobjc-dev] endian bug in PyDocURLProtocol example
Brought to you by:
ronaldoussoren
|
From: Ronald O. <ron...@ma...> - 2008-02-27 09:17:09
|
Tom, Thanks for the fix. I've applied it in revision 1992. Ronald On Wednesday, February 27, 2008, at 08:37AM, "Tom Insam" <to...@je...> wrote: >The function 'fourCharToInt' in PyDocEvents.py > >http://svn.red-bean.com/pyobjc/trunk/pyobjc/pyobjc-framework-WebKit/Examples/PyDocURLProtocol/PyDocEvents.py > >uses struct.unpack without specifying the endianness of the unpack - >it wants to be > > struct.unpack('>l', code)[0] > >or it won't work on intel machines. > >I haven't tested the example otherwise - I was merely cribbing it for >writing my own URL handler. The way it mysteriously fails to work on >intel machines while producing no error messages whatsoever is >especially entertaining. > >Tom Insam >to...@je... > > >------------------------------------------------------------------------- >This SF.net email is sponsored by: Microsoft >Defy all challenges. Microsoft(R) Visual Studio 2008. >http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >_______________________________________________ >Pyobjc-dev mailing list >Pyo...@li... >https://lists.sourceforge.net/lists/listinfo/pyobjc-dev > > |