This forum uses cookies. Click X button to hide this message. What is stored? / Privacy
Total Commander Forum Index Total Commander
Forum - Public Discussion and Support
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Listener: search not work in ANSI locale

 
Post new topic   Reply to topic    Total Commander Forum Index -> TC Fixed bugs Printable version
View previous topic :: View next topic  
Author Message
exidler
Junior Member
Junior Member


Joined: 22 Jan 2018
Posts: 3

PostPosted: Mon Jan 22, 2018 10:04 am    Post subject: Listener: search not work in ANSI locale Reply with quote

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.
Back to top
View user's profile Send private message
Ovg
Power Member
Power Member


Joined: 06 Jan 2014
Posts: 532
Location: MOW

PostPosted: Mon Jan 22, 2018 10:49 am    Post subject: Reply with quote

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?
_________________
It's impossible to lead us astray for we don't care even to choose the way.
#259941, TC 9.20 RC1 x64, Windows 7 SP1 x64
Back to top
View user's profile Send private message Send e-mail
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 35761
Location: Switzerland

PostPosted: Thu Jan 25, 2018 4:30 am    Post subject: Reply with quote

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
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
exidler
Junior Member
Junior Member


Joined: 22 Jan 2018
Posts: 3

PostPosted: Sat Feb 10, 2018 4:47 pm    Post subject: Reply with quote

Have tested search with different encoding setting:
- As configured for current Font => work.
- Cyrillic Windows 1251 => work.
- ANSI (local code page) (0) => does not work.

I have configured non default font for ANSI with script Cyrillic.
Back to top
View user's profile Send private message
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 35761
Location: Switzerland

PostPosted: Mon Feb 12, 2018 8:50 am    Post subject: Reply with quote

Quote:
I have configured non default font for ANSI with script Cyrillic.

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.
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
exidler
Junior Member
Junior Member


Joined: 22 Jan 2018
Posts: 3

PostPosted: Wed Mar 14, 2018 12:42 pm    Post subject: Reply with quote

ghisler(Author) wrote:
Quote:
I have configured non default font for ANSI with script Cyrillic.

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.
No, my system is English language with Russia location, Russia format settings and Russia for non unicode programs.
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.
Back to top
View user's profile Send private message
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 35761
Location: Switzerland

PostPosted: Thu Mar 15, 2018 4:45 am    Post subject: Reply with quote

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
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 35761
Location: Switzerland

PostPosted: Fri May 04, 2018 1:59 am    Post subject: Reply with quote

This should be fixed in TC 9.20 beta 1, please test it!
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
DrShark
Power Member
Power Member


Joined: 03 Nov 2006
Posts: 1111
Location: Kyiv, 68/262

PostPosted: Fri May 04, 2018 4:12 am    Post subject: Reply with quote

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)
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.
_________________
Android 4.3.1 no root, kernel 08.09.2016; Vista Home Premium SP2 rus 32 bit
TC #149847 Personal licence

Cuz we're all in this together, We're here to make it right
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Total Commander Forum Index -> TC Fixed bugs All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Imprint/Impressum: This site is maintained by Ghisler Software GmbH
Privacy Policy | Datenschutzerklärung | Politique de Confidentialité

Using phpBB © phpBB Group