GNOME Bugzilla – Bug 356259
� in UserComment field
Last modified: 2008-01-16 13:09:55 UTC
After importing a photo with existing tags I get the following in the UserComment field. <rdf:Description> <ns2:UserComment> <rdf:Alt> <rdf:li xml:lang="x-default">��������������������������������������������������������������������������������������������������������������������������������</rdf:li> </rdf:Alt> </ns2:UserComment> </rdf:Description>
Created attachment 72898 [details] photo with problem
hmmm I need to look into this deeper.
I get those descriptions even when importing directly from camera.
If it can be useful, this is what exiv2 -v -p h says about UserComment of an imported image: 0x9286 Photo UserComment Undefined 263 263 (Binary value suppressed) \0 values are the "unused" part of the comment. Shouldn't we strip those values off of the result string, in src/Imaging/Tiff.cs:441?
Created attachment 100050 [details] [review] strip-zeros-from-comment-field.patch this patch simply adds a .Trim('\0') to the return value.
Thanks Maxxer :) Much appreciated simple and easy patch :)
fixed in r3546