Encoding menu in lister not always enabled.

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

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
jphendriks
Junior Member
Junior Member
Posts: 31
Joined: 2004-01-20, 08:16 UTC
Location: Purmerend
Contact:

Encoding menu in lister not always enabled.

Post by *jphendriks »

Hi. I found that when listing an UTF-8 file, then switching to Text-Only|Binary may not always enable the Encoding menu. It may happen when I first go through the Explorer View Option. I guess Encoding should always be enabled for Text-Only|Binary|Hex (and maybe HTML text) and always disabled for UTF-8|Unicode. Trying 10.50b8 Windows 10x64.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Encoding menu in lister not always enabled.

Post by *ghisler(Author) »

Thanks, I found a way to reproduce it:
1. View UTF-8 encoded file with F3 -> mode 7 is checked
2. Switch to mode 8
3. Switch back to mode 1 -> encoding doesn't get enabled.

It happens because Lister has to reload the file when switching from Explorer mode to one of the internal modes. This causes a detection of the encoding, which is (falsely) detected as ASCII/DOS for some files. I think I can disable this for UTF-8 encoded files.
Author of Total Commander
https://www.ghisler.com
User avatar
jphendriks
Junior Member
Junior Member
Posts: 31
Joined: 2004-01-20, 08:16 UTC
Location: Purmerend
Contact:

Re: Encoding menu in lister not always enabled.

Post by *jphendriks »

In RC1 it seems fixed. Thanks!
User avatar
white
Power Member
Power Member
Posts: 4594
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Encoding menu in lister not always enabled.

Post by *white »

Moderator message from: white » 2022-06-11, 21:53 UTC

Moved to Fixed bugs.
Post Reply