[Lister 9.0a x64] 'Wrap text' option truncate RTF file

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

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
ts4242
Power Member
Power Member
Posts: 2081
Joined: 2004-02-02, 20:08 UTC
Contact:

[Lister 9.0a x64] 'Wrap text' option truncate RTF file

Post by *ts4242 »

When open RTF file >32 KB and check or uncheck the option Wrap text, Lister truncate the file content, this is occur in TC x64 only.

Here is a test file,

Code: Select all

MIME-Version: 1.0
Content-Type: application/octet-stream; name="test.rar"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="test.rar"

UmFyIRoHAM+QcwAADQAAAAAAAAA2I3QgkC0ADAEAAESEAAACS/NwgXocIUodMwgAIAAAAHRlc3Qu
cnRmALD5mzUJ1NHMz9WBEu6heDzddFI3bZbS6rbwO7v+lyNuVldco25bopO70/MJIRwJ8OGNaFmG
acQL3H1pQJHkLgyBCQePf0K7Z4oT5aJaLISVWUcmzfeeKPvyQlmnnxwq0adw6Pr7kt48KbwZ+3H4
dt+p9FVtuWnhpeOeqinaZviSuya3Hi9pKaMtdHnq1dXTu/rhnmqmrv/orxe+8r4mljvFFj7NjtO/
xyaoflE3780VS90NOaLFfKG+uuWFNtfDMLJL274LKY/DJwf607mi5fVkccOMDyxemHku7cSZzJ+1
9Nb9d2w8OwAAAAAAAAAXWYeV0WHh2AAAAAAAAALnGHhy4Lh6rF2311kuc7q2XR/oxD17AEAHAA==
after check or uncheck the option Wrap text, the last line "BBB...." disappear!
User avatar
petermad
Power Member
Power Member
Posts: 14743
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Confirmed with your test file and only with 64bit TC 9.0a

This also affects TC8.52a 64bit.
Last edited by petermad on 2017-01-02, 16:03 UTC, edited 1 time in total.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
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 will check it, thanks. Sounds like a bug in the Lazarus RTF component.
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48028
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

This should be fixed in TC 9.10 beta, please test it!
Author of Total Commander
https://www.ghisler.com
User avatar
ts4242
Power Member
Power Member
Posts: 2081
Joined: 2004-02-02, 20:08 UTC
Contact:

Post by *ts4242 »

Fixed in TC 9.10 x64
18.01.17 Fixed: Lister: RTF control text was limited to 32k after toggling "word wrap" manually (Reason: inherited control was calling EM_LIMITTEXT with limit=0, which limits to 64k bytes, 32k Unicode chars) (64)
Post Reply