Activity log for bug #959908

Date Who What changed Old value New value Message
2012-03-20 04:04:28 Hobson Lane bug added bug
2012-03-20 04:18:26 Hobson Lane attachment added undefined_to_human, latin_to_ascii, escape_unprintable, and try_int https://bugs.launchpad.net/pyexiv2/+bug/959908/+attachment/2901574/+files/Bug959908_utils_undefined_to_human.patch
2012-03-20 07:50:37 Hobson Lane attachment added Bug959908_utils_only.patch https://bugs.launchpad.net/pyexiv2/+bug/959908/+attachment/2902081/+files/Bug959908_utils_only.patch
2012-03-20 08:16:25 Hobson Lane attachment added Bug959908_utils_and_exif.patch https://bugs.launchpad.net/pyexiv2/+bug/959908/+attachment/2902253/+files/Bug959908_utils_and_exif.patch
2012-03-20 08:17:51 Hobson Lane attachment removed undefined_to_human, latin_to_ascii, escape_unprintable, and try_int https://bugs.launchpad.net/pyexiv2/+bug/959908/+attachment/2901574/+files/Bug959908_utils_undefined_to_human.patch
2012-03-20 08:20:09 Hobson Lane description Per discussion of Bug #942595 it would be nice to be able to display EXIF "Undefined" strings without garbling a terminal with control codes or ValueError faulting on non-ascii characters, e.g. ord()>128 Ideally, the following code should display human-readable text, exif = im.exif_keys for k in im.exif_keys: print "{0}: {1}".format(k,str(im[k].value)) print '------------- Comment -------------------' print im.comment print '-----------------------------------------------' However, even with these new utils, until they are incorporated into the python string output interface for exif tag classes ( ExifTag.convert_to_python() ), the provided utils will not help. A separate branch on launchpad will be provided that incorporates these utils into ExifTag.convert_to_python() so that prints "don't surprise" Per discussion of Bug #942595 it would be nice to be able to display EXIF "Undefined" strings without garbling a terminal with control codes or ValueError faulting on non-ascii characters, e.g. ord()>128 Ideally, the following code should display human-readable text,  exif = im.exif_keys  for k in im.exif_keys:   print "{0}: {1}".format(k,str(im[k].value))  print '------------- Comment -------------------'  print im.comment  print '-----------------------------------------------' However, these new utils methods won't help unless they are incorporated into the python string output interface for exif tag classes ( ExifTag.convert_to_python() ).
2012-03-20 10:05:07 Hobson Lane branch linked lp:~hobs/pyexiv2/pyexiv2