TC7.50pb2: special chars not displayed in lister (ANSI/HEX)
Moderators: Hacker, petermad, Stefan2, white
TC7.50pb2: special chars not displayed in lister (ANSI/HEX)
Open a file in Lister. The file must contain special characters in it (i.e. any text file with CRs and LFs).
Change viewing mode to Binary (2) or HEX (3) and Encoding to ANSI (it happens with custom code pages too).
In "As configured for current font" encoding, little black boxes are shown for characters that cannot be displayed (i.e. CR, LF, etc). In ANSI mode though (or any other custom code page) nothing is displayed. In HEX mode, this makes the right part of the window appear unjustified.
This does not happen in TC7.04a but since then, many things have been changed in Lister...
Tests performed under WinXP-SP3 (32bit).
Change viewing mode to Binary (2) or HEX (3) and Encoding to ANSI (it happens with custom code pages too).
In "As configured for current font" encoding, little black boxes are shown for characters that cannot be displayed (i.e. CR, LF, etc). In ANSI mode though (or any other custom code page) nothing is displayed. In HEX mode, this makes the right part of the window appear unjustified.
This does not happen in TC7.04a but since then, many things have been changed in Lister...
Tests performed under WinXP-SP3 (32bit).
- Wanderer -
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
- ghisler(Author)
- Site Admin
- Posts: 50406
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Here is what happens:
Hex and Binary modes:
Lister shows the little black boxes if the reported character width is wrong for a fixed width font. For a variable width font, Lister shows boxes only for characters with a width of 0.
In Text mode, Lister always shows the characters unchanged.
This is by design. Does any of your findings differ from the above behaviour?
Hex and Binary modes:
Lister shows the little black boxes if the reported character width is wrong for a fixed width font. For a variable width font, Lister shows boxes only for characters with a width of 0.
In Text mode, Lister always shows the characters unchanged.
This is by design. Does any of your findings differ from the above behaviour?
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
I'm guessing the way it looks now in TC7.5, it's not how it is supposed to look. Anyway, a picture will probably be more helpful.ghisler(Author) wrote:Lister shows the little black boxes if the reported character width is wrong for a fixed width font.
- Wanderer -
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
Hi, Wanderer, hi, Christian.
Is the reported behaviour not the same behaviour which was reported for T.C. 7.02 a long time ago, here: Display bugs in Compare ?
Kind regards,
Karl
Is the reported behaviour not the same behaviour which was reported for T.C. 7.02 a long time ago, here: Display bugs in Compare ?
Kind regards,
Karl
Hello Karl.karlchen wrote:Is the reported behaviour not the same behaviour which was reported for T.C. 7.02 a long time ago
I'm not sure. TC7.04a works just fine for me. What i'm reporting seems to be something new, introduced in TC7.5.
I'm using the fixedsys font in Lister for ANSI encoding. I tried using Courier New, as Christian mentions in the link you provided but there is no difference.
Some additional info: When i open Lister, "As configured for current font" encoding is selected. As soon as i change it to ANSI, i notice the problem i'm reporting.
After some more testing: it seems to happen with every type of encoding except "As configured for current font" (just tested this under Win2K-SP4).
- Wanderer -
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
Hi, Wanderer.
Lister has been set to use the "default font" for "ASCII", "ANSI" and "variable width". So it will be the Vista font which replaces non-printing characters by dots and not by little squares.
Testfile used in all cases: the "tasten.txt" file (German version of "keyboard.txt" in the folder "%COMMANDER_PATH%)
Kind regards,
Karl
Well, the lister menu item "Encoding" has been introduced in T.C. 7.50 and does not exist in 7.04a. This is true. So you are right. I'd say that the linked thread was about a somehow similar problem, yet not about the same problem that you reported.What i'm reporting seems to be something new, introduced in TC7.5.
I can confirm this, well, partially:it seems to happen with every type of encoding except "As configured for current font" (just tested this under Win2K-SP4).
- Reproduced the described behaviour on Windows XP Prof SP1/SP2, 32bit, ger
- Cannot reproduce the described behaviour on Windows Vista Home Premium, 32bit, ger
Lister has been set to use the "default font" for "ASCII", "ANSI" and "variable width". So it will be the Vista font which replaces non-printing characters by dots and not by little squares.
Testfile used in all cases: the "tasten.txt" file (German version of "keyboard.txt" in the folder "%COMMANDER_PATH%)
Kind regards,
Karl
Last edited by karlchen on 2009-05-11, 22:09 UTC, edited 1 time in total.
Confirmed. Menu option Options/ANSI (Windows charset) checked and menu option Encoding/ANSI (local code page) (0) checked.wanderer wrote:Open a file in Lister. The file must contain special characters in it (i.e. any text file with CRs and LFs).
Change viewing mode to Binary (2) or HEX (3) and Encoding to ANSI (it happens with custom code pages too).
In "As configured for current font" encoding, little black boxes are shown for characters that cannot be displayed (i.e. CR, LF, etc). In ANSI mode though (or any other custom code page) nothing is displayed. In HEX mode, this makes the right part of the window appear unjustified.
It does not happen in TC7.04a? It was not possible in TC7.04a to choose both options mentioned above.wanderer wrote: This does not happen in TC7.04a but since then, many things have been changed in Lister...
Hi, white.
Thanks for revealing the Windows version.
For the moment the issue has been reproduced on
+ Windows 98se
+ Windows 2000 SP4 Rollup1
+ Windows XP Sp1, Sp2, Sp3
+ Windows 2003 Std SP2, 32bit/64bit
The issue could not be reproduced on Windows Vista.
Hopefully I will not forget to check out what lister looks like on Win2K SP2 Rollup1 and on Windows 2003.
Cheers,
Karl
--
<edit>
Thanks to Wanderer's reminder below and based on my own tests on Win2003, the list above has been completed, Win2K and Win2003 have been added.
</edit>
Thanks for revealing the Windows version.
For the moment the issue has been reproduced on
+ Windows 98se
+ Windows 2000 SP4 Rollup1
+ Windows XP Sp1, Sp2, Sp3
+ Windows 2003 Std SP2, 32bit/64bit
The issue could not be reproduced on Windows Vista.
Hopefully I will not forget to check out what lister looks like on Win2K SP2 Rollup1 and on Windows 2003.
Cheers,
Karl
--
<edit>
Thanks to Wanderer's reminder below and based on my own tests on Win2003, the list above has been completed, Win2K and Win2003 have been added.
</edit>
Last edited by karlchen on 2009-05-12, 08:57 UTC, edited 1 time in total.
Hi Karl

karlchen wrote:Hopefully I will not forget to check out what lister looks like on Win2K SP2 Rollup1 and on Windows 2003.
That is Win2K-SP4 Rollup1.wanderer (a few posts above this) wrote:After some more testing: it seems to happen with every type of encoding except "As configured for current font" (just tested this under Win2K-SP4).

- Wanderer -
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
- ghisler(Author)
- Site Admin
- Posts: 50406
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
I could reproduce and fix it now, thanks for all your help! It happens in this constellation:
1. ANSI mode, binary or hex view
2. No custom codepage chosen -> TC uses Windows GDI to show text
3. Line breaks (CR/LF) have standard widths, so TC does not replace them by dots
4. Switch to a user-defined encoding, e.g. Cyrillic -> TC uses Uniscribe now for text output
5. Uniscribe doesn't display line break characters, they have width 0, but TC still assumes that they have the correct width from measuring it with GDI functions.
1. ANSI mode, binary or hex view
2. No custom codepage chosen -> TC uses Windows GDI to show text
3. Line breaks (CR/LF) have standard widths, so TC does not replace them by dots
4. Switch to a user-defined encoding, e.g. Cyrillic -> TC uses Uniscribe now for text output
5. Uniscribe doesn't display line break characters, they have width 0, but TC still assumes that they have the correct width from measuring it with GDI functions.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Hello, Christian.
I would like to confirm that the issue has been solved by T.C. 7.50 PB3.
Tested it on these platforms:
+ Windows 2000 SP4 Rollup1, 32bit
+ Windows XP Sp2, 32bit
+ Windows 2003 Std SP2, 32bit/64bit
+ (Windows Vista had not been affected.)
Kind regards,
Karl
--
<edit>
Removed the string "Wanderer's statement" from the first sentence. Looks as if I had overinterpreted your previous reply.
</edit>
I would like to confirm that the issue has been solved by T.C. 7.50 PB3.

Tested it on these platforms:
+ Windows 2000 SP4 Rollup1, 32bit
+ Windows XP Sp2, 32bit
+ Windows 2003 Std SP2, 32bit/64bit
+ (Windows Vista had not been affected.)
Kind regards,
Karl
--
<edit>
Removed the string "Wanderer's statement" from the first sentence. Looks as if I had overinterpreted your previous reply.
</edit>
Last edited by karlchen on 2009-05-15, 12:47 UTC, edited 1 time in total.