Listener: search not work in ANSI locale
Moderators: Hacker, petermad, Stefan2, white
Listener: search not work in ANSI locale
Total Commander 9.12 x32,
Windows 10 x64 build 1709,
Windows locale - EN, Windows regional settings - Russia, Windows locale for non-unicode programs - Russia.
Listener, plain text in ANSI (Windows charset), text in cp-1251 displayed fine, search with russian letters does not find anything, but must find.
Search by text in Total Commander (Find files -> Find text) works fine, and file with matched text shown.
If any more details need - can post.
Windows 10 x64 build 1709,
Windows locale - EN, Windows regional settings - Russia, Windows locale for non-unicode programs - Russia.
Listener, plain text in ANSI (Windows charset), text in cp-1251 displayed fine, search with russian letters does not find anything, but must find.
Search by text in Total Commander (Find files -> Find text) works fine, and file with matched text shown.
If any more details need - can post.
2exidler
I haven't such problem with the same settings, but under Windows 7.
(English Windows, Regional settings - Russia, Windows locale for non-unicode programs - Russia.)
Possibly Windows 10 bug?
I haven't such problem with the same settings, but under Windows 7.
(English Windows, Regional settings - Russia, Windows locale for non-unicode programs - Russia.)
Possibly Windows 10 bug?
It's impossible to lead us astray for we don't care even to choose the way.
#259941, TC 11.01 x64, Windows 7 SP1 x64
#259941, TC 11.01 x64, Windows 7 SP1 x64
- ghisler(Author)
- Site Admin
- Posts: 50541
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
I don't think it's a Windows 10 problem. I have tried with a Russian text files in cp-1251 format, F3, set format to Cyrillic Windows (1251), search works. However, I'm using "Western" encoding, so search doesn't find cyrillic when using default or ANSI (0) options.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 50541
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
So you mean that your system is set to Western, but you use a font which displays characters as cyrillic? Sorry, this will not work, because then TC will use Western for search.I have configured non default font for ANSI with script Cyrillic.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
No, my system is English language with Russia location, Russia format settings and Russia for non unicode programs.ghisler(Author) wrote:So you mean that your system is set to Western, but you use a font which displays characters as cyrillic? Sorry, this will not work, because then TC will use Western for search.I have configured non default font for ANSI with script Cyrillic.
Font - changed to non default, because I like Consolas font.
And only one case, when search does not work (in russian language): Listener => Encoding => Ansi (local code page) (0)
If it's desired behaviour - ok.
- ghisler(Author)
- Site Admin
- Posts: 50541
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
No, this should definitely work. Lister would use CP_ACP (active code page) to convert the Unicode search text to the default ANSI encoding, which should be Russian in your case. For some reason, CP_ACP seems to be not Russian in your system.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 50541
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
This should be fixed in TC 9.20 beta 1, please test it!
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
I could reproduce the issue, as described in history920.txt, in TC 9.12 on russian Windows Vista 32-bit, and can confirm the fix for TC 9.20 on Vista 32-bit.history920.txt wrote:10.04.18 Fixed: Lister: Couldn't find Cyrillic text under special conditions: language for non-Unicode programs=Russian, encoding=Ansi (0), default font was changed (32/64)
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
Ukraine's National Bank special bank account:
UA843000010000000047330992708