Issues with UTF-7 files and lister

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
Sombra
Power Member
Power Member
Posts: 811
Joined: 2005-12-27, 22:23 UTC
Location: Zaragoza, Spain

Issues with UTF-7 files and lister

Post by *Sombra »

Select text and copy with mouse seems don't work properly with utf-7 text.
For reproduce, follow the next steps:
  • Download this text files (it is codified in utf-7) http://www.breto.net/totalcmd/temp2/utf7_test.txt
  • Open downloaded file with lister F3 (if you have a plugin for view txt files, then open it without plugins with alt+shift+F3)
  • Press key 1 in lister for show as "text only"
  • Change codification to UTF-7. For do it, go to menu Encoding > Other > ant type codepage 65000 (now the text is shown correctly)
  • If cursor in lister is disabled, enable it with F6
  • Set cursor at begin of line
  • Issue 1: press Shift+END for select the whole line. The line is not selected as is expected
  • Issue 2: Select the line with mouse and copy to clipboard. Now Paste in a blank file. Not all text was copied.
I can read English, but... I write like Tarzan. (sorry)
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48096
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Indeed none of the UTF encodings is supported well in Lister '1' mode, sorry. The reason is that they can use more than 2 bytes per character. I'm sorry, there is currently no way to make them work better. Maybe I should disallow UTF-7 completely until I find a solution.
Author of Total Commander
https://www.ghisler.com
Post Reply