Text is shifted when selecting in Lister

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

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
Flint
Power Member
Power Member
Posts: 3487
Joined: 2003-10-27, 09:25 UTC
Location: Antalya, Turkey
Contact:

Text is shifted when selecting in Lister

Post by *Flint »

On the Russian forum there were two reports which I suppose are related.

Here is the video and two images:
Image1
Image2

The problem is caused by Russian letter "я" (ANSI charcode 0xFF, Unicode: 0x044F, UTF-8: 0xD1 0x8F). The more letters "я" in the text, the larger is displacement of the text being selected.

Here is the sample text file.
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 10.52 / Win10 x64
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

No problem here, I tried with "Arial" font and Russian script set for "variable" character width.

I assume that the used font is reporting a wrong character width for that character.
Author of Total Commander
https://www.ghisler.com
User avatar
Flint
Power Member
Power Member
Posts: 3487
Joined: 2003-10-27, 09:25 UTC
Location: Antalya, Turkey
Contact:

Post by *Flint »

Here it is reproduceable with default settings (Fixedsys, regular, 10). The file should be viewed with ANSI font.
ghisler(Author) wrote:I assume that the used font is reporting a wrong character width for that character.
This can hardly be. If I convert this file from UTF-8 into ANSI and view with absolutely the same font (in the same ANSI mode), selection works correctly.
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 10.52 / Win10 x64
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I can't test this with Fixedsys right now, it doesn't support Russian here. I will try later on a different Windows installation.
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I have tested this in Windows XP with Russian locale and fixedsys font. However, there was no error, the text was selected exactly as it should. I'm sorry but I cannot fix this error, since I cannot reproduce it.
Author of Total Commander
https://www.ghisler.com
User avatar
Flint
Power Member
Power Member
Posts: 3487
Joined: 2003-10-27, 09:25 UTC
Location: Antalya, Turkey
Contact:

Post by *Flint »

That's a pity... :(

I have installed on VMware a new, clean WinXP SP2 eng, customized all its regional settings to Russian and the problem is clearly reproduced.

Please, could you check once more? All settings should be set, that is:
Regional options tab:
Standards and formats: Russian
Location: Russia
Advanced tab:
Language for non-Unicode programs: Russian

With these settings and with clean, completely default TC installation (empty INI) the problem is still reproducable.

BTW, the selection itself should be performed from right to left! Else this text shifting becomes invisible.
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 10.52 / Win10 x64
User avatar
Flint
Power Member
Power Member
Posts: 3487
Joined: 2003-10-27, 09:25 UTC
Location: Antalya, Turkey
Contact:

Post by *Flint »

Fixed in 7.03.
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 10.52 / Win10 x64
Post Reply