[Lister] RegEx also in Unicode/UTF-8 display modes

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
amachado
Junior Member
Junior Member
Posts: 3
Joined: 2009-08-25, 19:19 UTC

[Lister] RegEx also in Unicode/UTF-8 display modes

Post by *amachado »

It would be great if Regular Expressions could be enabled also for Unicode / UTF-8 display modes...

Thanks
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50873
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

It could be done for Unicode UTF16, I'm already using a Unicode library for file names now. But for UTF-8 I don't know how to handle it, sorry.
Author of Total Commander
https://www.ghisler.com
amachado
Junior Member
Junior Member
Posts: 3
Joined: 2009-08-25, 19:19 UTC

Post by *amachado »

Could this (utf8-chartable.de) be useful?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50873
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

The problem is that UTF-8 characters consist of multiple bytes. Therefore all the regex functions would need to be changed to handle that special case. This is especially difficult for things like ranges like [a-z] when dealing with non-English characters.
Author of Total Commander
https://www.ghisler.com
amach
Junior Member
Junior Member
Posts: 41
Joined: 2003-04-09, 14:23 UTC
Location: Brazil

Is this possible now?

Post by *amach »

It has been a long time since last reply; did something change in the meantime, so it could be possible now? At least for UTF-16 files...
If you confess with your mouth Jesus as Lord, and believe in your heart that God raised Him from the dead, you will be saved. (Romans 10.9)
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

ghisler,
Isn't it easier to convert UTF-8 to UTF-16 before displaying in Lister? So UTF-16 regex engine may be used for searching.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50873
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Yes, TC9 will do exactly that. It was added almost a year ago, on 22.03.15. Due to unresolved issues (no icon designer, problems with colors by folder) the release date of TC9 is still unknown, sorry.
Author of Total Commander
https://www.ghisler.com
Post Reply