Page 1 of 1

unwrapwidth=16384 but i see only 2048 chars

Posted: 2018-10-29, 12:18 UTC
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.

Re: unwrapwidth=16384 but i see only 2048 chars

Posted: 2018-10-29, 12:29 UTC
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.

Re: unwrapwidth=16384 but i see only 2048 chars

Posted: 2018-10-29, 15:40 UTC
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.

Re: unwrapwidth=16384 but i see only 2048 chars

Posted: 2018-10-29, 17:47 UTC
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.

Re: unwrapwidth=16384 but i see only 2048 chars

Posted: 2018-10-30, 07:35 UTC
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?

Re: unwrapwidth=16384 but i see only 2048 chars

Posted: 2018-10-30, 11:35 UTC
by Usher
2AntonDudarenko
Interesting, I will re-test it. What Windows version and what display drivers do you use?

Re: unwrapwidth=16384 but i see only 2048 chars

Posted: 2018-10-30, 12:19 UTC
by AntonyD
Win10 x64. build 1607.
display drivers - windows built-in for legacy Radeon HD2400 PRO

Re: unwrapwidth=16384 but i see only 2048 chars

Posted: 2018-10-30, 12:51 UTC
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.

Re: unwrapwidth=16384 but i see only 2048 chars

Posted: 2018-10-30, 13:05 UTC
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.