[8.0ß24 x64] RTF files lose their styling when wrapped

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

Moderators: white, Hacker, petermad, Stefan2

Post Reply
umbra
Power Member
Power Member
Posts: 871
Joined: 2012-01-14, 20:41 UTC

[8.0ß24 x64] RTF files lose their styling when wrapped

Post by *umbra »

TCx64 has a problem with RTF files - when you enable wrapping, the text will lose its formatting (as if it was just a simple text file). You have to change Lister into some other mode and then back to multimedia to show the formatting again.
Windows 7 Pro x64, Windows 10 Pro x64
User avatar
karlchen
Power Member
Power Member
Posts: 4603
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

Hello, umbra.

Take e.g. the Register.rtf file in the T.C. programme folder. It is a valid RTF file. Display it in T.C. lister and make the lister window small enough that lines will be wrapped. Now switch on and off wrapping as long as you like. Nothing bad is going to happen.

The error which you report happens with corrupted or invalid RTF files. I.e the problem is that T.C. is persuaded to easily to accept a file as an RTF file without noticing that is not a valid RTF file. Cf. the other thread, please: Lister bug with RTF files. Other programmes like e.g. Word 2010 or Textmaker 2012 will refuse to open and display such a file.

Kind regards,
Karl
MX Linux 21.3 64-bit xfce, Total Commander 10.52 64-bit
The people of Alderaan keep on bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine.
The Prophet's Song
umbra
Power Member
Power Member
Posts: 871
Joined: 2012-01-14, 20:41 UTC

Post by *umbra »

2karlchen
I'm not sure what you are talking about. I created this bug report, because I noticed this bug while I was reading tbeu's post in the thread you are reffering to (my post is right under his).
BTW, if you did not understand description of this bug, here is a video.
Windows 7 Pro x64, Windows 10 Pro x64
User avatar
karlchen
Power Member
Power Member
Posts: 4603
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

Oh, I see. So far I have checked the behaviour of 32-bit lister only, 7.56a, 7.57a and 8.0ß24 32-bit.
Might be specific to 64-bit T.C. lister. Will check...

So, yes, you are talking about a different problem: your RTF file is valid and T.C. lister stops displaying the formatting correctly.

--
OK, you are right. The problem which your video illustrates can be reproduced using T.C. 8.0ß24 64-bit only. Important part 64-bit. The 32-bit version does not exhibit this flaw.

Karl
MX Linux 21.3 64-bit xfce, Total Commander 10.52 64-bit
The people of Alderaan keep on bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine.
The Prophet's Song
User avatar
Dalai
Power Member
Power Member
Posts: 9394
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Post by *Dalai »

I can confirm the bug. I even checked 8.0 beta 2 which behaves the same as beta 24.

Just to make sure it isn't missed:
karlchen wrote:Important part 64-bit. The 32-bit version does not exhibit this flaw.
Confirmed.

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: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Looks like a bug of the Lazarus RTF control. :(

I will check whether I can find a workaround, but don't have very high hopes.
Author of Total Commander
https://www.ghisler.com
umbra
Power Member
Power Member
Posts: 871
Joined: 2012-01-14, 20:41 UTC

Post by *umbra »

Fixed in beta 25. Thanks.
Windows 7 Pro x64, Windows 10 Pro x64
User avatar
karlchen
Power Member
Power Member
Posts: 4603
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

Fix in Total Commander 8.0ß25 64-bit confirmed.

Karl
MX Linux 21.3 64-bit xfce, Total Commander 10.52 64-bit
The people of Alderaan keep on bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine.
The Prophet's Song
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks!
Btw, it's not a Lazarus fault this time, because Lazarus doesn't even have any RTF control! I had to write my own, and didn't consider the case where the Window control has to be recreated.
Author of Total Commander
https://www.ghisler.com
umbra
Power Member
Power Member
Posts: 871
Joined: 2012-01-14, 20:41 UTC

Post by *umbra »

Btw, it's not a Lazarus fault this time, ...
I'm almost surpised, because of all the other Lazarus's bugs. :D
Windows 7 Pro x64, Windows 10 Pro x64
Post Reply