ExifTool Forum

ExifTool => Bug Reports / Feature Requests => Topic started by: HaujetZhao on October 21, 2021, 08:16:35 AM

Title: -stay_open mode, the `-charset filename=utf8` only work once
Post by: HaujetZhao on October 21, 2021, 08:16:35 AM
When using `-stay_open` mode, the `-charset filename=utf8` only work once.

I start the command with `exiftool  -stay_open True -@ -`, then I sent it args:

```
-createdate
文件01.jpg
-execute

-createdate
文件02.jpg
-execute
```

For the first file, it would be Okay, but when it comes to the second file, ExifTool will say the charset of the filename is not set.

Okay, I accept, so then I tried:

```
-charset filename=utf8
-createdate
文件01.jpg
-execute

-charset filename=utf8
-createdate
文件02.jpg
-execute
```

Then ExifTool will say `Warning: Tag 'charset' is not defined`

So I'm crushed. How can I set every filename their charset?

I think the there is a logic bug in the use of `-charset` when it comes to `-stay_open`.
Title: Re: -stay_open mode, the `-charset filename=utf8` only work once
Post by: Phil Harvey on October 21, 2021, 10:29:15 AM
This is FAQ 29 (https://exiftool.org/faq.html#Q29)

- Phil
Title: Re: -stay_open mode, the `-charset filename=utf8` only work once
Post by: HaujetZhao on October 21, 2021, 01:25:19 PM
Quote from: Phil Harvey on October 21, 2021, 10:29:15 AM
This is FAQ 29 (https://exiftool.org/faq.html#Q29)

- Phil

Ah, my bad, sorry, haven't finish reading the FAQ, I'll study more. Thanks a lot!
Title: Re: -stay_open mode, the `-charset filename=utf8` only work once
Post by: Phil Harvey on October 21, 2021, 01:50:23 PM
I would suggest first reading the documentation for the option you are using (in this case -@) before checking the FAQ if you have a problem.

- Phil
Title: Re: -stay_open mode, the `-charset filename=utf8` only work once
Post by: HaujetZhao on October 22, 2021, 03:42:31 AM
Quote from: Phil Harvey on October 21, 2021, 01:50:23 PM
I would suggest first reading the documentation for the option you are using (in this case -@) before checking the FAQ if you have a problem.

- Phil

Got it, thanks again!