google-code-export / thebigpicture

Automatically exported from code.google.com/p/thebigpicture
1 stars 1 forks source link

IPTC digit deconding is buggy #19

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
An IPTC digit is a special kind of Ascii string, which only allows digits.
It is used to encode numbers. The current decode method in iptcdatatypes.py
simply calls Pythons int() function, but this produces the wrong results
when the string starts with zeroes.

Original issue reported on code.google.com by p.edel...@gmail.com on 19 Mar 2007 at 7:17

GoogleCodeExporter commented 9 years ago
This is actually not the case, although the opposite holds true; str(number) 
produces
different results when it is padded with zeroes, because it the assumes it is 
octal
notation.

This issue is closed without fixing.

Original comment by p.edel...@gmail.com on 19 Mar 2007 at 7:28