On Mon, Sep 11, 2006 at 12:04:40AM +0200, Tobias Herzke wrote: > Package: libjpeg-progs > Version: 6b-10 > > The jpeg comment printed by the tool rdjpgcom differs from the jpeg > comment present in the jpeg file. > > For example, rdjpegcom replaces "unprintable" bytes with a > backslash-sequence (see function process_COM in file rdjpgcom.c). > > wrjpgcom, on the other hand, performs no alterations. > > This is a problem if the comment is in a different encoding than the > system's locale, or if the comment is in a multibyte encoding (e.g. utf-8). > > rdjpgcom should not modify the comment at all.
Hello Tobias, Actually this is a security-feature. As I wrote in bug #116589: For safety reason, rdjpgcom output non printable characters in jpeg comments as octal sequences, to avoid security problem when reading comments in 'untrusted' jpeg files. You can convert octal sequence to character with % /bin/echo -e `rdjpgcom orig1.jpg` I am not sure how this can be improved. Cheers, -- Bill. <[EMAIL PROTECTED]> Imagine a large red swirl here. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]