unwrapwidth=16384 but i see only 2048 chars
Moderators: Hacker, petermad, Stefan2, white
unwrapwidth=16384 but i see only 2048 chars
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.
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
Re: unwrapwidth=16384 but i see only 2048 chars
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.
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
- ghisler(Author)
- Site Admin
- Posts: 50471
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: unwrapwidth=16384 but i see only 2048 chars
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
https://www.ghisler.com
Re: unwrapwidth=16384 but i see only 2048 chars
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
Polish subforum moderator
Re: unwrapwidth=16384 but i see only 2048 chars
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?
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
Re: unwrapwidth=16384 but i see only 2048 chars
2AntonDudarenko
Interesting, I will re-test it. What Windows version and what display drivers do you use?
Interesting, I will re-test it. What Windows version and what display drivers do you use?
Andrzej P. Wozniak
Polish subforum moderator
Polish subforum moderator
Re: unwrapwidth=16384 but i see only 2048 chars
Win10 x64. build 1607.
display drivers - windows built-in for legacy Radeon HD2400 PRO
display drivers - windows built-in for legacy Radeon HD2400 PRO
#146217 personal license
Re: unwrapwidth=16384 but i see only 2048 chars
Time for an Windows update.AntonDudarenko wrote: 2018-10-30, 12:19 UTC Win10 x64. build 1607.
display drivers - windows built-in for legacy Radeon HD2400 PRO
Version 1607 not supported since April.
Windows 11 Home, Version 24H2 (OS Build 26100.3915)
TC 11.55 RC1 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.2.1 x64
TC 11.55 RC1 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.2.1 x64
Re: unwrapwidth=16384 but i see only 2048 chars
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.
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