Ignoring the optional character set definition results in incorrect display of the user comment value
Shotwell version: 0.32.2
exiftool version: 12.74
exiv2 version: 0.27.5
The expected behaviour:
The handling of the metadata field Exif.Photo.UserComment should be compatible with other tools like the popular exiftool. The visible user comment in the images overview grid or in the image detail view should not have a leading information of the character set, eg.:
charset=Ascii Beautiful sunset sky
but the user comment only like:
Beautiful sunset sky
What was actually happening:
I'm adding values into Exif.Photo.UserComment with exiftool with a perl script before importing the photos into Shotwell for many years now. For some time the user comment values displayed in Shotwell in the grid view and in the edit comment window suddenly started with a 'charset=Unicode' string. Unfortunately i can not remember the versions of Shotwell and exiftool i used before or which of them has been updated on my computer since this behavior.
Steps to reproduce the issue:
- Add a user comment to a photo with exiftool.
- Import the photo into Shotwell.
- Enable the display of user comments in the grid view or watch the photo in detail view and check the user comment output in the right meta data column.
Maybe this has something to do with some changes in the exiv2 library, as already discussed here: https://github.com/Exiv2/exiv2/issues/1258