Lister: log files, bottom line
Moderators: Hacker, petermad, Stefan2, white
Lister: log files, bottom line
Windows 8.1, TC 9.12 64-bit
This is common with log files. The log file stays open, lines are appended and flushed. The text is in Unicode (UTF-16 LE with BOM), if it matters at all.
Probably this would not be seen with ordinary static files.
Open file, press End
An example of the last line.
Reopening the file would not help - until file gets more lines.
Other navigation methods make no difference (Ctrl+PgDn).
Obviously, the last line is barely readable, and adding about half a line of safety space might help.
This is common with log files. The log file stays open, lines are appended and flushed. The text is in Unicode (UTF-16 LE with BOM), if it matters at all.
Probably this would not be seen with ordinary static files.
Open file, press End
An example of the last line.
Reopening the file would not help - until file gets more lines.
Other navigation methods make no difference (Ctrl+PgDn).
Obviously, the last line is barely readable, and adding about half a line of safety space might help.
Last edited by browny on 2017-12-17, 13:32 UTC, edited 2 times in total.
2browny
Anyway I cannot reproduce it (in Lister using Ctrl+End) with TC's own log files (which here is written in UTF-8). Which log-files are you referring to?
Does it happen for you with any size of the Lister window? What font-setting are you using in Lister for this file type?
Do you perhaps mean Ctrl+End (to go to the last line) - or do you really mean to go to the end of the current line? When you write "Open file", I assume you mean open file with Lister...Open file, press End
Anyway I cannot reproduce it (in Lister using Ctrl+End) with TC's own log files (which here is written in UTF-8). Which log-files are you referring to?
Does it happen for you with any size of the Lister window? What font-setting are you using in Lister for this file type?
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
petermad,

Roman
... with the cursor being turned off.Do you perhaps mean Ctrl+End (to go to the last line) - or do you really mean to go to the end of the current line? When you write "Open file", I assume you mean open file with Lister...

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
End works for me, and as was written, whatever method gets to the end of file.petermad wrote:Do you perhaps mean Ctrl+End
The first word in topic title suggests that idea.When you write "Open file", I assume you mean open file with Lister...

Settings: autodetect and default fonts.
Not sure if this is related: after opening file, the lowest line in Lister's window is visible only partially, like in the example picture. But that line is not the last line in file.
This has been a long-standing issue in TC and it kind of annoys me, too. IIRC it was discussed in the past, but I don't remember what Ghisler said about it and how he explained it (if he did).
And yes, I have Lister's cursor always turned off, only rarely switch it on when I need it.
Regards
Dalai
And yes, I have Lister's cursor always turned off, only rarely switch it on when I need it.
Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
2Hacker
But in my defence - cursor being on is the default setting.
2browny
But apart from that - even if I disable the cursor in Lister, I still cannot reproduce it.
I can not make the log file work with Unicode - only with UTF-8 or ANSI- text - but that might be due to my Windows Locale. By default my TC saves the log file as UTF-8, but if I convert an existing log file to ANSI it works with that too, but not if I convert the file to Unicode or Unicode Big Endian - with Unicode new entries are shown in Chinese (it looks like).
I have also testet with a clean ini file and with Windows 8.1, and still cannot reproduce the problem.
2browny
Do you use any DPI-scaling?
Arh - always forget about that option... with the cursor being turned off.

2browny
Oops againThe first word in topic title suggests that idea

But apart from that - even if I disable the cursor in Lister, I still cannot reproduce it.
It doesn't matter whether I adjust Listers height, so that the last visible line when just opened is not cropped or not. In both cases the last line is shown whith at least one empty line beneath when I press End.Not sure if this is related: after opening file, the lowest line in Lister's window is visible only partially, like in the example picture. But that line is not the last line in file.
I can not make the log file work with Unicode - only with UTF-8 or ANSI- text - but that might be due to my Windows Locale. By default my TC saves the log file as UTF-8, but if I convert an existing log file to ANSI it works with that too, but not if I convert the file to Unicode or Unicode Big Endian - with Unicode new entries are shown in Chinese (it looks like).
I have also testet with a clean ini file and with Windows 8.1, and still cannot reproduce the problem.
2browny
Do you use any DPI-scaling?
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
That was another attention test.petermad wrote:I still cannot reproduce it.

It was said being common.
Not every time, in other words. There is a fair chance to catch the problem if the file is updated frequently.
No DPI scaling.petermad wrote:Do you use any DPI-scaling?
Maybe lister does not take into account the horizontal scrollbar; that would explains why lowest line is cropped, and the same happens with the last line in file
I have tried at least 50 times after file update without "success"There is a fair chance to catch the problem if the file is updated frequently.
I guess it must have to do with the Unicode (UTF-16 LE with BOM) encoding, which I cannot duplicate - have you done anything special to have the log-files in that format?
My TC writes a blank line in the end of the file - does yours?
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
I can find these:It was said being common.
http://ghisler.ch/board/viewtopic.php?p=178372#178372
http://ghisler.ch/board/viewtopic.php?p=162954#162954
but they ar caused by only very long lines or word wrap being on - I don't think either is the case here - from your screnshot you obviously don't have word wrap enabled, since you have a horizontal scrollbar, and I doubt that any file operation can result in a 4000 character long line.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
UTF-16 LE is Windows' native, no coversion needed.
The issue also exists with wrapping on.
Lines could be longer than 500 characters, still far from 4000 characters limit.
Cautiosly dragging bottom of the window in tiny increments allows to see more of the line; and there might be yet another one below.
Which means, that probably the followin happens:
1) Lister gets file size, then reads files sequentially until end of file condition
2) Lister gets more data than expected, because file size was either reported incorrectly due to delayed update, or size was invalidated with file write(s)
3) window size is not a multiple of line height, hence this display issue with additional lines
Maybe Lister should readjust file size and line count according to actually received data.
Or cheat a little by tweaking window height to make it look right.
The issue also exists with wrapping on.
Lines could be longer than 500 characters, still far from 4000 characters limit.
Cautiosly dragging bottom of the window in tiny increments allows to see more of the line; and there might be yet another one below.
Which means, that probably the followin happens:
1) Lister gets file size, then reads files sequentially until end of file condition
2) Lister gets more data than expected, because file size was either reported incorrectly due to delayed update, or size was invalidated with file write(s)
3) window size is not a multiple of line height, hence this display issue with additional lines
Maybe Lister should readjust file size and line count according to actually received data.
Or cheat a little by tweaking window height to make it look right.

Hmm, as I wrote - here by me, when TC generates a new log-file from scratch, it is in UTF-8 - it even says so inside the file:UTF-16 LE is Windows' native, no coversion needed.
"19-12-2017 10:54:10: Program start (username/computername) UTF-8"
And the file is also recognized as UTF-8 if I check the format in Notepad or in Lister.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
-
- Power Member
- Posts: 872
- Joined: 2013-09-04, 14:07 UTC
Well, eMule log files are hardly comparable with TC log files, or...?petermad wrote:Hmm, as I wrote - here by me, when TC generates a new log-file from scratch, it is in UTF-8 - it even says so inside the file:UTF-16 LE is Windows' native, no coversion needed.
"19-12-2017 10:54:10: Program start (username/computername) UTF-8"
And the file is also recognized as UTF-8 if I check the format in Notepad or in Lister.

OK - now everything is much clearer - you never stated that it was not TC's log files you were talking about...Well, eMule log files are hardly comparable with TC log files,
Last edited by petermad on 2017-12-19, 20:09 UTC, edited 1 time in total.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar