The incorrect aperture is definitely because of the comma instead of the decimal in the number. I'm not sure about the shutter speed, but it could be the same problem.
Actually, I'm not sure how ExifTool works at all with commas in the numbers. As far as I know, this is not standard Perl. ExifTool uses the following standard regular expression to test for a floating point number:
This C++ version of Perl seems to have some odd peculiarities. Maybe we should discuss these problems via email rather than in this forum since they probably aren't of interest to many others.
I'm posting back in this thread after our email exchange since I think the solution is applicable to others using the ExifTool API if they are using locales in their scripts. I had suggested going offline with your problems partly because I was anticipating other unique problems associated with using the C++ version of Perl, but it seems this wasn't the case since you now have things working after solving this problem.
The problem with different locales was a bit tricky, and from what I have seen Perl isn't very consistent about its handling of floating point numbers in locals which use a comma instead of a decimal point. For example:
But I have changed ExifTool and released a new version (5.69) which is more tolerant of these locales, and to convert floating point numbers properly if the locale uses commas instead of decimal points. This also applies when writing floating point values.