Bug with ascii/ansi codepage in 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

nice
Junior Member
Junior Member
Posts: 84
Joined: 2018-03-12, 23:58 UTC

Bug with ascii/ansi codepage in Lister

Post by *nice »

1. create text file with contents:

Code: Select all

2017.06.19

was: 3470,02
now: 492,02
2. view it, and switch from ANSI to ASCII
- the line "was: 3470,02" is changing font, the other lines doesn't.
- the font is not monospaced

3. create text file:

Code: Select all

MIME-Version: 1.0
Content-Type: application/octet-stream; name="GBPUSD.rann_M2.hst"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="GBPUSD.rann_M2.hst"

kQEAAENvcHlyaWdodCAyMDAwLTIwMjIsIE1ldGFRdW90ZXMgTHRkLgAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAABHQlBVU0QucmFubg==
4. view it, and switch from ANSI to ASCII
- some lines will have different font, and some will have the same font.

5. uudecode it

6. view it, and switch from ANSI to ASCII
- the letter "a" will be replaced to "." , and the 0x00 will be replaced to "a"
User avatar
Dalai
Power Member
Power Member
Posts: 9364
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Bug with ascii/ansi codepage in Lister

Post by *Dalai »

Not confirmed with either of the two (or three) files. I suggest you try with a fresh wincmd.ini

Code: Select all

totalcmd.exe /i="%TEMP%\fresh.ini"
totalcmd64.exe /i="%TEMP%\fresh.ini"
If the issue persists you might have some font rendering or font substitution issue on your system.

Regards
Dalai
Last edited by Dalai on 2023-03-10, 18:41 UTC, edited 1 time in total.
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
User avatar
Gral
Power Member
Power Member
Posts: 1460
Joined: 2005-01-26, 15:12 UTC

Re: Bug with ascii/ansi codepage in Lister

Post by *Gral »

I cannot confirm any part of this report.
nice
Junior Member
Junior Member
Posts: 84
Joined: 2018-03-12, 23:58 UTC

Re: Bug with ascii/ansi codepage in Lister

Post by *nice »

tested on fresh install, and on two different (win7 & win10) systems

https://i.imgur.com/cvyhOvS.gif
https://i.imgur.com/QMyLkHt.gif
User avatar
AntonyD
Power Member
Power Member
Posts: 1231
Joined: 2006-11-04, 15:30 UTC
Location: Russian Federation

Re: Bug with ascii/ansi codepage in Lister

Post by *AntonyD »

I can confirm parts:
5. uudecode it

6. view it, and switch from ANSI to ASCII
- the letter "a" will be replaced to "." , and the 0x00 will be replaced to "a"
As to the first part - pls provide file with mentioned content ALREADY as a real file.
Not as a text only.

And of course during switching ASCII - ANSI here will be some glitches / strange things happen because
we use absolutely different codepages on our computers...

Part
4. view it, and switch from ANSI to ASCII
- some lines will have different font, and some will have the same font.
can't confirm.
But again - the reason can be hidden precisely in what font is installed and actually called for viewing.
There are situations when one font is registered in the settings / in the system, but for some reason it is not physically exist / it is not available - and then characters from another font are substituted and we see nonsense on the screen....
#146217 personal license
nice
Junior Member
Junior Member
Posts: 84
Joined: 2018-03-12, 23:58 UTC

Re: Bug with ascii/ansi codepage in Lister

Post by *nice »

files:
1. https://drive.google.com/file/d/1NnzA50skQyI3iLxv-MxVqbuCW2Ic-lKW/view?usp=share_link
2. delete two "#" 's in the link: ht#tps://drive.google.com/file/d/10FLVhtpFipTdq#qmaWpRI5r9gboAZn04w/view?usp=share_link
3. https://drive.google.com/file/d/14yUgXzgOniBIejs9yL5jxejaoJ3zWzJu/view?usp=sharing

demo:
https://i.imgur.com/CGJrVaR.gif

don't ask me about the link 2. it's better to read here
nice
Junior Member
Junior Member
Posts: 84
Joined: 2018-03-12, 23:58 UTC

Re: Bug with ascii/ansi codepage in Lister

Post by *nice »

User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Bug with ascii/ansi codepage in Lister

Post by *petermad »

2nice

Downloaded your files btcmdbug20170619.txt and GBPUSD.rann_M2.hst testet them in Lister - no mixed fonts in ASCII view for any of them.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
AntonyD
Power Member
Power Member
Posts: 1231
Joined: 2006-11-04, 15:30 UTC
Location: Russian Federation

Re: Bug with ascii/ansi codepage in Lister

Post by *AntonyD »

Same here. I can see only FULL font changing - related to the whole process of switching ANSI-ASCII: two very old character encoding schemes.
And of course I see MY chosen fonts in both cases. And all lines are rendered identically...

P.S.
Even if I clarify the moment when I wrote above that I confirm one part of the description of a potential rendering bug, then it must be clarified that this change completely fits logically into what I wrote in previous sentences. It's just the result of changing chosen fonts.
BTW: WHICH exactly fonts are you using for this?
#146217 personal license
User avatar
Hacker
Moderator
Moderator
Posts: 13052
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Re: Bug with ascii/ansi codepage in Lister

Post by *Hacker »

nice,
TC 10.52 x64, W10 21H2 x64.
1. create text file with contents:

Code: Select all

2017.06.19

was: 3470,02
now: 492,02
2. view it, and switch from ANSI to ASCII
- the line "was: 3470,02" is changing font, the other lines doesn't.
Confirmed.
3. create text file:

Code: Select all

MIME-Version: 1.0
Content-Type: application/octet-stream; name="GBPUSD.rann_M2.hst"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="GBPUSD.rann_M2.hst"

kQEAAENvcHlyaWdodCAyMDAwLTIwMjIsIE1ldGFRdW90ZXMgTHRkLgAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAABHQlBVU0QucmFubg==
4. view it, and switch from ANSI to ASCII
- some lines will have different font, and some will have the same font.
Confirmed.
5. uudecode it

6. view it, and switch from ANSI to ASCII
- the letter "a" will be replaced to "." , and the 0x00 will be replaced to "a"
Confirmed, but not sure if it is a bug or if it should be like that.

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
nice
Junior Member
Junior Member
Posts: 84
Joined: 2018-03-12, 23:58 UTC

Re: Bug with ascii/ansi codepage in Lister

Post by *nice »

2Dalai
2Gral
2AntonyD
2petermad
select >= 125% font size in windows interface.
User avatar
Dalai
Power Member
Power Member
Posts: 9364
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Bug with ascii/ansi codepage in Lister

Post by *Dalai »

So I tried it in a VM (Win7) with 125% and 150% scaling. I still can't confirm the issue. I'm still wondering why your menu bar in Lister is completely flat while the window titlebar and border design looks like Win7. By default menu bars in Win7 are not flat and have a different color (gradient) than in your animated GIFs. Do you use some modified theme? Or is this a Windows 10 that is made to look like Win7? Maybe this has something to do with the issue.

I also tried with a clean wincmd.ini and in TC 32-bit and 64-bit (version 10.52) but neither of these things changes anything.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Bug with ascii/ansi codepage in Lister

Post by *petermad »

nice wrote: 2023-03-11, 18:40 UTC 2Dalai
2Gral
2AntonyD
2petermad
select >= 125% font size in windows interface.
I tried with 125% in Windows 7.

with this setting the font in ANSI and ASCII mode looks the same (where they are two different fonts in 100%), but I still don't see any mixed fonts in ASCII view. So obviously there is some kind of font substitution in 125% mode, but it seems to be differnt which font it is substituted with.

I only have standard Windows 7 fonts installed, not even extra fonts from MS Office, since I don't have Office.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
AntonyD
Power Member
Power Member
Posts: 1231
Joined: 2006-11-04, 15:30 UTC
Location: Russian Federation

Re: Bug with ascii/ansi codepage in Lister

Post by *AntonyD »

select >= 125% font size in windows interface.
I saw your initial post about it. Does not matter for me...
So it's definitely something very special and local in your environment...

2Hacker
2nice
which EXACTLY fonts do you use for these modes? Do you REALLY have them on a disks of your comps?
#146217 personal license
nice
Junior Member
Junior Member
Posts: 84
Joined: 2018-03-12, 23:58 UTC

Re: Bug with ascii/ansi codepage in Lister

Post by *nice »

ok, change the "Language for non-Unicode programs" to some non-english.
slovak or cyrillic.

we are not using any fonts other than the standard ones in TC (fixedsys and terminal).
Post Reply