Lister+Plugin+UTF8 HTM: no switch to "Strip tags"

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+Plugin+UTF8 HTM: no switch to "Strip tags"

Post by *DrShark »

To reproduce:
1. Install some WLX plugin for HTM files. For example I'll use uLister.

2. Press F3 to open HTM file with UTF-8 encoding (sample inside ZIP archive: http://rghost.ru/66zvmdCsC).
Plugin will render the file:
https://farm6.staticflickr.com/5742/23324719716_df3a15b3ec_o.png

3. Press "5" key or select menu Options->HTML Text (strip tags) to switch the view. Lister will switch to UTF-8 mode instead (assigned to "7" key):
https://farm6.staticflickr.com/5756/22723699063_2a0a5bb810_o.png

With Alt+Shift+F3 this HTM file will be auto-opened in "HTML Text (strip tags)" view:
https://farm6.staticflickr.com/5832/23351410445_88782afa9e_o.png
Last edited by DrShark on 2015-11-27, 17:58 UTC, edited 1 time in total.
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: 48028
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

NOT confirmed.

F3 opens the file with html viewer plugin
"5" shows it as HTML Text (ANSI)
"7" shows it as HTML Text (UTF8)
"7" again shows it as plain text (UTF8)

Maybe it depends on the viewed file?
Author of Total Commander
https://www.ghisler.com
User avatar
Dalai
Power Member
Power Member
Posts: 9366
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Post by *Dalai »

I cannot confirm this either. For me, Alt+Shift+F3 opens the file in HTML w/ UTF-8 mode, just like switching from the Lister plugin to "HTML Text" does. I used the readmes of my Services2 and Startups plugins for this test.

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
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Post by *DrShark »

OK, it seems that it doesn't happen with all UTF-8 HTM files. Maybe UTF-8 encoding isn't even a trigger... A link to a file I used to reproduce the bug (it's inside zip archive):
http://rghost.ru/66zvmdCsC
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
Dalai
Power Member
Power Member
Posts: 9366
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Post by *Dalai »

Still can't confirm using your file. F3 opens the file in Lister plugin (doesn't display anything, but that doesn't matter, I guess), pressing "5" key switches to "HTML Text" view just fine (UTF-8 disabled). Alt+Shift+F3 opens the file in HTML with UTF-8 enabled. So, it's the other way around as in your OP.

Can you reproduce it with a clean wincmd.ini?

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
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Post by *DrShark »

2Dalai
With default settings I can confirm Lister behaviour as you described it. However, if I add some plugin that handles HTM file to default wincmd.ini (requires also executing cm_UnloadPlugins or TC restart), after pressing "5" key or selecting "HTML Text (Strip tags)" view TC will show the file just in UTF-8 view. I checked it with each of uLister, IEView and IEWebLister plugins installed.

Tested on TC 8.52a 32 bit, Vista Home Premium 32 bit rus.

--- EDIT:
One more test without plugins intalled (default wincmd.ini settings):
1) sample file from above post:
a) F3 shows file with "HTML text (Strip tags)" and "UTF-8" checked.
b) F3+5: just "HTML text (Strip tags)" checked.
c) F3+5+7: "HTML text (Strip tags)" and "UTF-8" checked.
d) F3+5+5: "HTML text (Strip tags)" and "UTF-8" checked.
2) another file: http://rghost.ru/7qs27Nyq6
a) F3: just "HTML text (Strip tags)" checked.
b) F3+5: just "HTML text (Strip tags)" checked.
c) F3+5+7: "HTML text (Strip tags)" and "UTF-8" checked.
d) F3+5+5: just "HTML text (Strip tags)" checked.
P.S. Bug from initial bugreport (with plugin) doesn't happen with file from second example. Since plugins are not used in tests form this "--- EDIT" chapter, I created another report for this: http://ghisler.ch/board/viewtopic.php?t=43097.
Last edited by DrShark on 2015-11-24, 01:42 UTC, edited 1 time in total.
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
Dalai
Power Member
Power Member
Posts: 9366
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Post by *Dalai »

I can confirm your findings using a fresh wincmd.ini (with HTML View plugin installed), even with the readmes of my plugins. So it depends on some of TC's settings which I don't have in a fresh wincmd.ini.

I'll report back when I have more info.

[EDIT]
I was wrong. It's not a TC setting. It's the version of HTML View. Version 1.1 works as expected (Lister switches to "HTML Text"), Version 1.2.6 causes Lister to switch to UTF-8 w/o HTML.

Based on these findings I'm not sure there is a bug in TC (maybe, maybe not).

[/EDIT]

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
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Post by *DrShark »

Dalai wrote:Version 1.1 works as expected (Lister switches to "HTML Text"), Version 1.2.6 causes Lister to switch to UTF-8 w/o HTML.
I can't confirm HTML View 1.1 correct behaviour. Well, if you'll press "5" while example file still loading in HTML View (Lister-HTMLView window will show white space instead of file content) and press "5" key, Lister will go to "HTML text (strip tags)" view. However, if you'll wait till HTML View will render the file (its text will appear; it can take ~1 minute for HTMLView to parse and render our sample ~650 kb htm file), and then press "5" key, Lister will go to just UTF-8 view.
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: 48028
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

You should ask the HTMLview author, it seems that it interferes with Lister's keyboard handling...
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:You should ask the HTMLview author, it seems that it interferes with Lister's keyboard handling...
The problem exists with ALL plugins mentioned in this topic, including HTMLView 1.1 (uLister, IEView, IEWebLister and HTMLView; my post to Dalai just had a description how to get a buggy behaviour with 1.1 version of HTMLView).
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: 48028
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I do not have this problem with any plugins here...
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:I do not have this problem with any plugins here...
I added links to screenshots in first post.
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: 48028
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Sorry, I still can't reproduce it - it always switches to HTML view when I press 5, also when coming from a plugin view.

Edit: After a few more tests, I can now reproduce it when coming from htmlview plugin, but only certain html files. I will check it in the debugger.
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 »

01.12.15 Fixed: Switching from a plugin to html view could switch to UTF-8 view instead, if the html file was detected as being utf-8 encoded (32/64)
Seems to be fixed, I couldn't anymore reproduce it on files that cause wrong behaviour in TC 8.
2Dalai
Can you try to reproduce it in TC 9 on your configuration?
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
Dalai
Power Member
Power Member
Posts: 9366
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Post by *Dalai »

DrShark wrote:2Dalai
Can you try to reproduce it in TC 9 on your configuration?
I could if I would use TC9, but I don't (it looks ugly on classic theme). Unfortunately I don't have time to check it in a different installation or machine.

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
Post Reply