Lister: UTF-8 mode & xml file: bugs trying to reach EOF

Bug reports will be moved here when the described bug has been fixed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Lister: UTF-8 mode & xml file: bugs trying to reach EOF

Post by *DrShark »

To reproduce:
1. Download sample xml file:
http://rghost.ru/7Y9LQ4JPK
It is in ZIP archive, so you can unpack it first or just enter in it using TC.
This xml file is from internals of DOCX document, so you can also try to check below steps on your files.
2. To avoid plugins loading, open file in Lister using Alt+Shift+F3 hotkey.
3. Turn on "Wrap text" in Lister's Options menu, if not active.
3. File by default opened in UTF-8 mode, but if in your case it is in other mode, switch to UTF-8 manually.
4a. Try to scroll down till the end of the file using PageDown key (doesn't matter keystrokes or permanent pressing).
4b. You will see white area larger that half of the page below last document character (the last place where you can put cursor, if enabled in Lister).
5a. Go up to beginning of the document, or just close and re-open it (see step 2). Now try to scroll down till the end of the document
using either mouse and right-side scrollbar, or just Down key.
5b. You will be stopped close to position of 99%, but you won't reach 100%.
(indicated in upright of lister's menu bar; exact % number depends on Lister window state, maybe also screen resolution).
Visually you will also see there are text lines behind Lister's window low border.

You may at first try step 5, and then step 4 - they are independent and lead to different buggy results.
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

It's a known problem with files which do not have line breaks. Lister calculates the line breaks "on the fly", but this only works for a certain length without line breaks. Your file is too long. It will be a bit better in TC9 because it uses a larger size, but the same problem will appear again with longer files.

This is the price to pay for the feature to view files of ANY size (even terabytes) very quickly.
Author of Total Commander
https://www.ghisler.com
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Post by *DrShark »

ghisler(Author) wrote:This is the price to pay for the feature to view files of ANY size.
...
It will be a bit better in TC9
Hope this will help with 99% issue (case 5) that makes invisible, or inaccessible, a part of a document. White space (case 4) is just a visual issue, so it will be nice if case 5 result will look like case 4.
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Re: Lister: UTF-8 mode & xml file: bugs trying to reach

Post by *DrShark »

DrShark wrote:4a. Try to scroll down till the end of the file using PageDown key (doesn't matter keystrokes or permanent pressing).
4b. You will see white area larger that half of the page below last document character (the last place where you can put cursor, if enabled in Lister).
5a. Go up to beginning of the document, or just close and re-open it (see step 2). Now try to scroll down till the end of the document
using either mouse and right-side scrollbar, or just Down key.
5b. You will be stopped close to position of 99%, but you won't reach 100%.
(indicated in upright of lister's menu bar; exact % number depends on Lister window state, maybe also screen resolution).
Visually you will also see there are text lines behind Lister's window low border.
Both issues 4 and 5 has been fixed in TC 9.00a for test sample from first post (stylesWithEffects.xml) as well as for some other XMLs from DOCX files that I checked just now.
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
Post Reply