Extraction Tags issue

Started by Janc, May 05, 2010, 08:22:35 AM

Previous topic - Next topic

Phil Harvey

Hi Janc,

I'm not sure what setlocale is doing, but your example breaks ExifTool because the decimal is changed to a comma in floating point numbers when the locale is set to "es_ES.UTF-8" (different from the "es_ES.utf8" you use on your system).  This causes lots of problems for numerical comparisons, etc.

I'm glad you found a work-around because I don't have a solution to this problem other than not setting the locale.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

Janc

Quote from: Phil Harvey on May 10, 2010, 07:10:49 AM
Hi Janc,

I'm not sure what setlocale is doing, but your example breaks ExifTool because the decimal is changed to a comma in floating point numbers when the locale is set to "es_ES.UTF-8" (different from the "es_ES.utf8" you use on your system).  This causes lots of problems for numerical comparisons, etc.

I'm glad you found a work-around because I don't have a solution to this problem other than not setting the locale.

- Phil

Hi Phil.

I have taken away all references to locale in all scripts so all of them are pure UTF-8 and problems go away.

Thanks a lot.
Best regards.
Janc.