Windows filesystem sync issues?

Started by ribtoks, March 16, 2016, 11:03:04 AM

Previous topic - Next topic

Phil Harvey

Quote from: ribtoks on March 17, 2016, 05:56:27 AM
- exiftool is being launched from QProcess with the same arguments. What happens:
Under one session of my application under 1st launch exiftool fails to read the file with error FileNotFound (encoding stuff), BUT in the same session after I try to import same file again, it's being read correctly! Exiftool reads correct encoding.

So I suppose in the first launch Exiftool sets some inner environment regarding unicode and I would like to know what is it? Can it be fixed on my side with some prerunning?

If you launch exiftool again, there is no possibility for any inner variables being different from the first time you ran it.  So this can't be the reason.

(I thought maybe you were using the -execute option to run multiple commands with one invocation of exiftool, in which case this may have been a possibility, but you weren't.)

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

ribtoks

Quote from: Phil Harvey on March 17, 2016, 07:35:10 AM
Quote from: ribtoks on March 17, 2016, 07:32:50 AM
If specified inside argfile it gives error There's no such TAG "-charset".

You need to put it on 2 lines:

-charset
filename=UTF8


And make sure there are no extra spaces on each line.

- Phil

Ok, I modified code like this, but still succeeds from windows command line and first time fails as a child process of my app.

ribtoks

I have resolved my problem with using -stay_open and writing arguments to stdin instead of argfile.
UTF-8 filepaths work correctly in Windows now with no lags or unexpected things.