Wrong color of URLs in UTF8-encoded files

Please report only one bug per message!

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
Dalai
Power Member
Power Member
Posts: 9366
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Wrong color of URLs in UTF8-encoded files

Post by *Dalai »

Hi there,

a while ago I noticed that TC's lister uses the wrong color for URLs if the HTML file has UTF-8 charset defined. See these pictures:
HTML without UTF-8 charset definition
The same HTML with UTF-8 charset definition

Steps to reproduce: View the following files (or any HTML file with UTF-8 charset) in TC's lister.

No (UTF-8 ) charset set, color is OK (blue as it should be):

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">

<head>
  <title>Total Commander (Remove or Repair)</title>
</head>

<body>
<h3>Total Commander (Remove or Repair)</h3>
<p>Registry-Schlüssel: <b>HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\Totalcmd</b></p>
<table>
<tr>
  <td>URLInfoAbout</td>
  <td><a href="http://www.ghisler.com" target="_blank">http://www.ghisler.com</a></td>
</tr>
</table>
</body>
</html>
UTF-8 charset defined, URL is colored (black) like the rest of the text.

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">

<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>Total Commander (Remove or Repair)</title>
</head>

<body>
<h3>Total Commander (Remove or Repair)</h3>
<p>Registry-Schlüssel: <b>HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\Totalcmd</b></p>
<table>
<tr>
  <td>URLInfoAbout</td>
  <td><a href="http://www.ghisler.com" target="_blank">http://www.ghisler.com</a></td>
</tr>
</table>
</body>
</html>
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
ghisler(Author)
Site Admin
Site Admin
Posts: 48028
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Strange, I cannot reproduce it - the links are blue in both cases, and also in both versions (32-bit and 64-bit) of TC. Tested with TC 8.01 and 7.57 on Windows 7.
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 »

It must have something to do with my config because it works with a fresh wincmd.ini but it doesn't with my regular one. Any ideas?

The bug is present in TC 7.56a and TC 8.01 on XP SP3 with my regular 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
Dalai
Power Member
Power Member
Posts: 9366
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Post by *Dalai »

I found the cause:

Code: Select all

[Lister]
Uniscribe=0
If this is set the URLs are drawn with text color. I don't remember anymore why I set this but I know that there was a problem if Uniscribe was activated.

EDIT:
Found it: Fixed fonts in binary lister are the reason why I disabled Uniscribe, see this thread in the German forum.

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
ghisler(Author)
Site Admin
Site Admin
Posts: 48028
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks, I can reproduce it now!
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 »

Unfortunately, this is still not fixed in 8.5 Beta1. Any hope to fix this until 8.5 final?

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
ghisler(Author)
Site Admin
Site Admin
Posts: 48028
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

NOT confirmed, they are colored now with Uniscribe=0. I tried the sample file above "UTF-8 charset defined, URL is colored (black) like the rest of the text. ".
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 »

Well, all I can say: The links are still black in TC 8.5 b1 (32 bit) if Uniscribe=0 is set in a fresh.ini. I can always reproduce the issue with a clean INI on XP SP3 and Win7 SP1 x64 using TC 8.01 and TC 8.5 beta1 (both 32 bit). [ADD] Can reproduce it with TC 8.5 beta1 x64 on Win7 SP1 x64 as well. [/ADD]

Can anyone confirm this problem?

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
Bluestar
Senior Member
Senior Member
Posts: 377
Joined: 2007-06-10, 15:26 UTC
Location: Hungary
Contact:

Post by *Bluestar »

Confirmed - setting "Uniscribe" with a value of "0" causes all of the links viewed in Lister to lose their color that has been predefined.
See the report by clicking here.
» Developer of Total Updater & extDir utility.
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 made a mistake, I fogot that my [Lister] section is redirected to a different file. I can reproduce it now.
Author of Total Commander
https://www.ghisler.com
Post Reply