BUG: File locked using -stay_open with extended characters in path

Started by pipur, November 29, 2020, 03:27:16 AM

Previous topic - Next topic

pipur


  • Windows 10 64-bit system
  • Exiftool 12.09
  • Command line: exiftool -charset filename=UTF8 -stay_open True -@ "c:\Users\Username\AppData\Local\Temp\Ö\argfile.txt"
  • Unable to append to argfile.txt - file in use (locked) by Exiftool. It works as expected when it's only ASCII characters in path

Phil Harvey

This is the way ExifTool opens these files:

    CreateFileW($file, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, 0, NULL);

Hmmm.  Perhaps FILE_SHARE_READ should be changed to FILE_SHARE_READ | FILE_SHARE_WRITE ?

- 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 ($).

Phil Harvey

Please let me know if ExifTool 12.12 solves this issue.

Thanks.

- 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 ($).


pipur

Quote from: Phil Harvey on December 04, 2020, 04:17:09 PM
Please let me know if ExifTool 12.12 solves this issue.

I can happily report that it seems to be solved in 12.12!
Happy days - thanks!

/Peter

Phil Harvey

...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 ($).