Encoding menu in lister not always enabled.
Moderators: white, Hacker, petermad, Stefan2
- jphendriks
- Junior Member
- Posts: 31
- Joined: 2004-01-20, 08:16 UTC
- Location: Purmerend
- Contact:
Encoding menu in lister not always enabled.
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.
- ghisler(Author)
- Site Admin
- Posts: 48021
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Encoding menu in lister not always enabled.
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.
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
https://www.ghisler.com
- jphendriks
- Junior Member
- Posts: 31
- Joined: 2004-01-20, 08:16 UTC
- Location: Purmerend
- Contact:
Re: Encoding menu in lister not always enabled.
In RC1 it seems fixed. Thanks!
Re: Encoding menu in lister not always enabled.
Moderator message from: white » 2022-06-11, 21:53 UTC
Moved to Fixed bugs.