ExifTool Forum

ExifTool => Bug Reports / Feature Requests => Topic started by: artofit on January 12, 2015, 08:07:26 AM

Title: Regression bug 9.80 vs 9.78 ?
Post by: artofit on January 12, 2015, 08:07:26 AM
Take some jpg with non English char, for example test files named:
müsli.jpg
d'hier et d'aujourd'hui.jpg

Run the command:
exiftool -P -r "-Comment<REGRESSION-${filename} BUG?"  -ext .jpg "F:\\test\\"

When done with 9.78, than XnView - or other apps - shows correct exif comment,
however with 9.80 it transforms any non English to jebberish (suppose wrong encoding set)

Also, note that for both version, the following is OK:
exiftool -P -r "-Comment<REGRESSION-${filename} BUG?"  *.jpg

Replacing Comment tag with IPTC:Caption-Abstract, I see the issue with both versions.

Thanks.
Title: Re: Regression bug 9.80 vs 9.78 ?
Post by: Phil Harvey on January 12, 2015, 08:37:37 AM
This is not a bug (hopefully), it is by design.  With version 9.79, special characters in Windows file names should (finally) be handled properly.  Older versions just passed filenames straight through without regard to the character encoding.  With 9.79 and later, the encoding of FileName and Directory values is controlled by the -charset option.  Try adding -L (equivalent to -charset latin) to your command if you want to use Windows Latin1 encoding for FileName.

- Phil