locked parent directory after show file with japanese chars
Moderators: Hacker, petermad, Stefan2, white
locked parent directory after show file with japanese chars
If I open file with japanese chars in name, parent directory is locked and cannot be renamed.
I create two directories (F7): "Dir1/Dir2".
I create empty file "ここに.txt" in "Dir2" (SHIFT+F4).
I show the empty file (F3) and press ESC to close.
Now, If I want to rename "Dir1" it will show error dialog (Please remove the write protection).
NOTE: "Dir2" is not locked and it can be renamed.
This problem is in TC10, TC11b9
I create two directories (F7): "Dir1/Dir2".
I create empty file "ここに.txt" in "Dir2" (SHIFT+F4).
I show the empty file (F3) and press ESC to close.
Now, If I want to rename "Dir1" it will show error dialog (Please remove the write protection).
NOTE: "Dir2" is not locked and it can be renamed.
This problem is in TC10, TC11b9
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: locked parent directory after show file with japanese chars
Not confirmed. My guess is that a Lister plugin tries and fails to open the file.
Does the same problem happen when you press Alt+Shift+F3 to view the file, and then ESC to close?
This will open Lister without any plugins.
If it doesn't happen with Alt+Shift+F3, you can try switching manually to various plugins until the dir is locked.
Does the same problem happen when you press Alt+Shift+F3 to view the file, and then ESC to close?
This will open Lister without any plugins.
If it doesn't happen with Alt+Shift+F3, you can try switching manually to various plugins until the dir is locked.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: locked parent directory after show file with japanese chars
Confirmed and confirmed for older versions as well (oldest tested: TC 7.50a).
Renaming in Explorer fails too.
Closing TC solves the problem.
Renaming in Explorer fails too.
Closing TC solves the problem.
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: locked parent directory after show file with japanese chars
2white
Did you read my reply? Could you try with Alt+Shift+F3?
Did you read my reply? Could you try with Alt+Shift+F3?
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: locked parent directory after show file with japanese chars
Yes, tried it. Same result. I tested without plugins anyway.
Did you try to rename the correct folder, Dir1?
Did you try to rename the correct folder, Dir1?
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: locked parent directory after show file with japanese chars
Doesn't happen here. Could you install lock hunter to find out whether the file itself is locked, or one of the directories?
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: locked parent directory after show file with japanese chars
On my hard drive C: it works OK. On my hard drive D: it doesn't work OK.
Re: locked parent directory after show file with japanese chars
I can confirm what white says.
- Alt+Shift+F3 - do not work
- on C drive it works
Lock Hunter:
Dir1: Locking Processes : TOTALCMD64.EXE
Dir2: No process locking this file or folder have been found
ここに.txt: No process locking this file or folder have been found
Image: https://ibb.co/gT4tTCQ
- Alt+Shift+F3 - do not work
- on C drive it works
Lock Hunter:
Dir1: Locking Processes : TOTALCMD64.EXE
Dir2: No process locking this file or folder have been found
ここに.txt: No process locking this file or folder have been found
Image: https://ibb.co/gT4tTCQ
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: locked parent directory after show file with japanese chars
I can confirm that it happens on drive D: but not on drive C:, very strange.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: locked parent directory after show file with japanese chars
I think the problem is that folder names are not in japanese.
If I do not create "Dir1/Dir2", but I create folders "きけ/なに", I can show file "ここに.txt" and then I can rename first folder "きけ".
Now it works.
If I do not create "Dir1/Dir2", but I create folders "きけ/なに", I can show file "ここに.txt" and then I can rename first folder "きけ".
Now it works.
Last edited by RM8MR on 2023-07-03, 10:52 UTC, edited 1 time in total.
Re: locked parent directory after show file with japanese chars
Sorry. It do not work if I use japanese chars in folder name.
If I use japanese chars in folder, it still lock second folder without japanese chars.
In this path is locked "DirA":
d:\ TMP \ DirA \ DirB \ きけ \ なに \ ここに.txt
If I use japanese chars in folder, it still lock second folder without japanese chars.
In this path is locked "DirA":
d:\ TMP \ DirA \ DirB \ きけ \ なに \ ここに.txt
Re: locked parent directory after show file with japanese chars
2RM8MR
Confirmed. Probably this is the case for any unicode character. I tried it with: d:\TEST\DirA\DirB\
\
.txt
Confirmed. Probably this is the case for any unicode character. I tried it with: d:\TEST\DirA\DirB\
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: locked parent directory after show file with japanese chars
I found the reason: It happens when a drive doesn't provide the alternate DOS file names in 8.3 format (8 name, 3 extension) for Unicode file names from a different code page. Lister tries to get them for plugins which don't support Unicode. The directory handle isn't closed in case of error (no name found).
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: locked parent directory after show file with japanese chars
Tested OK using TC 11.00b10 32-bit and 64-bit.HISTORY.TXT wrote:03.07.23 Fixed: Lister: Viewing a file where the name contained Unicode characters from a different code page would keep the directory locked if the drive didn't support alternative 8.3 DOS names (32/64)