unwrapwidth=16384 but i see only 2048 chars

Please report only one bug per message!

Moderators: sheep, Hacker, Stefan2, white

Post Reply
AntonDudarenko
Member
Member
Posts: 118
Joined: 2006-11-04, 15:30 UTC
Location: Russian Federation

unwrapwidth=16384 but i see only 2048 chars

Post by *AntonDudarenko »

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
AntonDudarenko
Member
Member
Posts: 118
Joined: 2006-11-04, 15:30 UTC
Location: Russian Federation

Re: unwrapwidth=16384 but i see only 2048 chars

Post by *AntonDudarenko »

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: 40047
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
http://www.ghisler.com
User avatar
Usher
Power Member
Power Member
Posts: 891
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.
Regards from Poland
Andrzej P. Wozniak
AntonDudarenko
Member
Member
Posts: 118
Joined: 2006-11-04, 15:30 UTC
Location: Russian Federation

Re: unwrapwidth=16384 but i see only 2048 chars

Post by *AntonDudarenko »

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: 891
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?
Regards from Poland
Andrzej P. Wozniak
AntonDudarenko
Member
Member
Posts: 118
Joined: 2006-11-04, 15:30 UTC
Location: Russian Federation

Re: unwrapwidth=16384 but i see only 2048 chars

Post by *AntonDudarenko »

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: 3912
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 10 Home x64 Version 20H2 (OS Build 19042.661)
TC 9.51 x64 / x86, Everything 1.4.1.998 (x64)
AntonDudarenko
Member
Member
Posts: 118
Joined: 2006-11-04, 15:30 UTC
Location: Russian Federation

Re: unwrapwidth=16384 but i see only 2048 chars

Post by *AntonDudarenko »

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