Package: python-yenc
Version: 0.3+debian-2
Severity: important

I noticed that the crc32 returned by yenc.encode() sometimes, odly,
had a leading 'x'. A little source perusal showed the problem: the
C function is converting the CRC to a python integer, which can
be negative. Then the python wrapper uses hex() to convert it
to a string, and trims the first two characters, which for a positive
value will be "0x", but for a negative value will be "-0", because
hex() creates a value of the form "-0x1234feed".


-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (900, 'unstable'), (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.24-1-686 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash

Versions of packages python-yenc depends on:
ii  libc6                         2.7-9      GNU C Library: Shared libraries
ii  python                        2.4.4-6    An interactive high-level object-o
ii  python-support                0.7.7      automated rebuilding support for P

python-yenc recommends no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to