[TC 11.58rc2] Range in multi-rename does not work with unicode
Moderators: Hacker, petermad, Stefan2, white
[TC 11.58rc2] Range in multi-rename does not work with unicode
in TC 11.58rc2 With windows XP 32 bit:
When multi-renaming a file containing unicode characters and selecting a Range in the name, the selection is wrong if you select characters after the unicode characters.
Example :
file : abc๐def.txt
Multi-rename, then Range select "def"
You get "ef" selected
It seems that Range selects bytes and not characters.
The problem was still existing with TC 11.57 and Windows XP and Windows 10
When multi-renaming a file containing unicode characters and selecting a Range in the name, the selection is wrong if you select characters after the unicode characters.
Example :
file : abc๐def.txt
Multi-rename, then Range select "def"
You get "ef" selected
It seems that Range selects bytes and not characters.
The problem was still existing with TC 11.57 and Windows XP and Windows 10
- ghisler(Author)
- Site Admin

- Posts: 53125
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: [TC 11.58rc2] Range in multi-rename does not work with unicode
This only seems to affect the range picker. Entering the range manually seems to work fine.
For example, renaming
abc๐def.txt
abc_def.txt
would pick def by manually entering [N5-7], although ๐ is two words, and _ is only one word wide.
For example, renaming
abc๐def.txt
abc_def.txt
would pick def by manually entering [N5-7], although ๐ is two words, and _ is only one word wide.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- ghisler(Author)
- Site Admin

- Posts: 53125
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: [TC 11.58rc2] Range in multi-rename does not work with unicode
This should be fixed in Total Commander 11.58 RC3, please test it!
09.06.26 Fixed: Multi-rename tool: The range picker dialog didn't consider Unicode characters consisting of more than one 16-bit word, e.g. Emoji, or Chinese characters with codes >=0x20000 (32/64)
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: [TC 11.58rc2] Range in multi-rename does not work with unicode
Two bugs still there:
1) It fails for first character. (try: ๐abcdef.txt, first character is still counted as 2 characters)
2) It fails on initial selection. (try: ๐๐๐๐๐๐๐๐๐๐๐.txt, which shows 1-22 instead of 1-11)
1) It fails for first character. (try: ๐abcdef.txt, first character is still counted as 2 characters)
2) It fails on initial selection. (try: ๐๐๐๐๐๐๐๐๐๐๐.txt, which shows 1-22 instead of 1-11)
- ghisler(Author)
- Site Admin

- Posts: 53125
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: [TC 11.58rc2] Range in multi-rename does not work with unicode
Confirmed.
1 is due to a bug in CharNextW. I will use my custom WAnsiNext function as I do in the actual rename function.
2 is because I don't call the converter when initially opening the dialog.
1 is due to a bug in CharNextW. I will use my custom WAnsiNext function as I do in the actual rename function.
2 is because I don't call the converter when initially opening the dialog.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: [TC 11.58rc2] Range in multi-rename does not work with unicode
The test I described in the first post with abc๐def.txt is now OK with TC 11.58rc3 in Windows 10 64 bit.
But it's not working with Windows XP 32 bit.
The result of Range selecting "def" is still "ef".
In windows XP Range selecting only "๐" selects in fact "๐d", whereas it's OK with Windows 10 64bit ( "๐" selected).
So the behavior is not the same with XP and Windows 10 64 bit.
I'll just point out that with XP the font is not able to draw the unicode character ๐ and draws an empty square in place, but I don't think it matters, it's a normal behavior.
But it's not working with Windows XP 32 bit.
The result of Range selecting "def" is still "ef".
In windows XP Range selecting only "๐" selects in fact "๐d", whereas it's OK with Windows 10 64bit ( "๐" selected).
So the behavior is not the same with XP and Windows 10 64 bit.
I'll just point out that with XP the font is not able to draw the unicode character ๐ and draws an empty square in place, but I don't think it matters, it's a normal behavior.
- ghisler(Author)
- Site Admin

- Posts: 53125
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: [TC 11.58rc2] Range in multi-rename does not work with unicode
This should be fixed in Total Commander 11.58 RC4, please test!
11.06.26 Fixed: Multi-rename tool: The range picker dialog still didn't handle multi-word characters correctly at the start of the string, also when initially opening, and when measuring from the end (32/64)
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: [TC 11.58rc2] Range in multi-rename does not work with unicode
Tested OK using TC 11.58rc4 32-bit and 64-bit.
Re: [TC 11.58rc2] Range in multi-rename does not work with unicode
It's OK for me too, with 32 and 64 bit.
Re: [TC 11.58rc2] Range in multi-rename does not work with unicode
Moderator message from: white ยป 2026-06-17, 19:29 UTC
Moved topic
ยป from TC11.x bug reports (English) to TC Fixed bugs
ยป from TC11.x bug reports (English) to TC Fixed bugs

