(?i) doesn't work for Russian letters in Search For field

Bug reports will be moved here when the described bug has been fixed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

(?i) doesn't work for Russian letters in Search For field

Post by *MVV »

By default TC ignores letters case and we need to specify (?-i) to match case. And with English letters all work fine. But for Russian letters in search field works only case-sensitive matching regardless of switch i.

Bug was reported on Russian board for 7.50, and I may confirm it. Also I may confirm that in TC 7.04a all work fine.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Sorry, I ave no solution, it's due to the change to Unicode.
Author of Total Commander
https://www.ghisler.com
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

As I think, in your regex library function that converts to lower/upper case is wrong with Unicode (it is used when comparing w/o matching case - so comparer needs to turn both strings into same case). So you need to replace it by system function like CharLower/CharUpper - it supports Unicode.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I found a solution for Windows NT-based systems now - the Win9x systems unfortunately don't have the needed conversion functions to upper/lowercase. The private beta testers can already test it.
Author of Total Commander
https://www.ghisler.com
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

People in Russian forum report that bug was fixed in TC 7.55b. I also may confirm that all work fine. Thanks! :)
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Nice to hear that, thanks for reporting it!
Author of Total Commander
https://www.ghisler.com
Post Reply