unwrapwidth=16384 but i see only 2048 chars

Please report only one bug per message!

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
AntonyD
Power Member
Power Member
Posts: 1231
Joined: 2006-11-04, 15:30 UTC
Location: Russian Federation

unwrapwidth=16384 but i see only 2048 chars

Post by *AntonyD »

Hi!
create if necessary and then Open at Lister any ASCII-based text file where some lines can be bigger than 1024 chars. For ex with 3000 chars, 4000 chars. And be sure that you have set unwrapwidth=16384 at wincmd.ini.
Expected: to see all long lines as a single long line of text. Of course we're taking in mind that we still have a restrictions - length not bigger than 16384.
But as I said - 3000/4000 chars will be enough in order to reproduce this bug.
In a real life: We will see that that long line of text (with 3/4 thousands) will be cut off at the 2048 char.
Real text editors will open such text file without any problems and all such long lines will be presented properly as a long single lines with length 3000/4000 chars.
#146217 personal license
User avatar
AntonyD
Power Member
Power Member
Posts: 1231
Joined: 2006-11-04, 15:30 UTC
Location: Russian Federation

Re: unwrapwidth=16384 but i see only 2048 chars

Post by *AntonyD »

Hmmmm... probably there is also a necessary condition for reproducing.
File in a whole should be big. more than 20Kb. (~400 lines)
All lines expect the tested one - can be less even 200 chars in a length.
And only one should be created with help of 3000/4000 ASCII chars.
#146217 personal license
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: unwrapwidth=16384 but i see only 2048 chars

Post by *ghisler(Author) »

Unfortunately DrawText/TextOut seem to be buggy with some display drivers and don't display more than a certain number of characters. I don't think that there is anything I can do about it, sorry.
Author of Total Commander
https://www.ghisler.com
User avatar
Usher
Power Member
Power Member
Posts: 1675
Joined: 2011-03-11, 10:11 UTC

Re: unwrapwidth=16384 but i see only 2048 chars

Post by *Usher »

This bug occurs only with very long lines of text (with NO spaces) in UTF-8. Text in UTF-16, Windows or DOS encoding is displayed properly.
Andrzej P. Wozniak
Polish subforum moderator
User avatar
AntonyD
Power Member
Power Member
Posts: 1231
Joined: 2006-11-04, 15:30 UTC
Location: Russian Federation

Re: unwrapwidth=16384 but i see only 2048 chars

Post by *AntonyD »

my text is in cp-1251. with spaces. and this bug i can easily to reproduce on my machine.
of course if there is some bug at DrawText/TextOut with some display drivers - it can be used as an explanations.
BUT which mechanism of text output is using editors? why at the simplest of them it CAN draw the long-long text ?
maybe because it uses some predefined control? which has an ability to draw such long text?
Maybe it's time to rewrite the engine of Lister tool?
#146217 personal license
User avatar
Usher
Power Member
Power Member
Posts: 1675
Joined: 2011-03-11, 10:11 UTC

Re: unwrapwidth=16384 but i see only 2048 chars

Post by *Usher »

2AntonDudarenko
Interesting, I will re-test it. What Windows version and what display drivers do you use?
Andrzej P. Wozniak
Polish subforum moderator
User avatar
AntonyD
Power Member
Power Member
Posts: 1231
Joined: 2006-11-04, 15:30 UTC
Location: Russian Federation

Re: unwrapwidth=16384 but i see only 2048 chars

Post by *AntonyD »

Win10 x64. build 1607.
display drivers - windows built-in for legacy Radeon HD2400 PRO
#146217 personal license
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6450
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: unwrapwidth=16384 but i see only 2048 chars

Post by *Horst.Epp »

AntonDudarenko wrote: 2018-10-30, 12:19 UTC Win10 x64. build 1607.
display drivers - windows built-in for legacy Radeon HD2400 PRO
Time for an Windows update.
Version 1607 not supported since April.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69
QAP 11.6.3.2 x64
User avatar
AntonyD
Power Member
Power Member
Posts: 1231
Joined: 2006-11-04, 15:30 UTC
Location: Russian Federation

Re: unwrapwidth=16384 but i see only 2048 chars

Post by *AntonyD »

no - it's a corp windows with long term service - and it has an administrative templates for overall update via admin's commands.
I should not do anything from my side. If admin decided not to update - it will be so. that is not my headache.
#146217 personal license
Post Reply