Re: [Python-Dev] test_gettext.py fails on 64-bit architectures

"MF" == Mark Favas <m.favas@per.dem.csiro.au> writes:
MF> Close, but no cigar - fixes the miscalculation of BE_MAGIC, MF> but "magic" is still read from the .mo file as MF> 0xffffffff950412de (the 64-bit rep of the 32-bit negative MF> integer 0x950412de) Thanks to a quick chat with Tim, who is always quick to grasp the meat of the issue, we realize we need to & 0xffffffff all the 32 bit unsigned ints we're reading out of the .mo files. I'll work out a patch, and check it in after a test on 32-bit Linux. Watch for it, and please try it out on your box. Thanks, -Barry

"Barry A. Warsaw" wrote:
Thanks to a quick chat with Tim, who is always quick to grasp the meat of the issue, we realize we need to & 0xffffffff all the 32 bit unsigned ints we're reading out of the .mo files. I'll work out a patch, and check it in after a test on 32-bit Linux. Watch for it, and please try it out on your box.
Yep - works fine on my 64-bitter (well, it certainly passes the test <grin>) Mark
participants (2)
-
bwarsaw@beopen.com
-
Mark Favas