[TC 11.00rc1] Unintended CRLF after BOM in 'descript.ion' (File comments) when using 'Unicode UTF8'

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
pi.degroote
Junior Member
Junior Member
Posts: 8
Joined: 2018-08-12, 14:47 UTC
Location: Ghent, Belgium
Contact:

[TC 11.00rc1] Unintended CRLF after BOM in 'descript.ion' (File comments) when using 'Unicode UTF8'

Post by *pi.degroote »

When using 'Unicode UTF8' as the preferred type in 'File comments', the 'descript.ion' always starts with an unneeded empty line (CRLF) after the BOM (Byte-Order Mark).

Example of a 'descript.ion' file with 'Unicode UTF8' :

Code: Select all

<-- unneeded CRLF (empty first line here, after BOM)
iview462_x64_setup.exe IrfanView 4.62 (x64)
iview462_plugins_x64_setup.exe IrfanView 4.62 - Plugins (x64)
Tested with Total Commander 11.00 RC1 (x64) on Windows 10 22H2 x64.
User avatar
petermad
Power Member
Power Member
Posts: 14809
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 11.00rc1] Unintended CRLF after BOM in 'descript.ion' (File comments) when using 'Unicode UTF8'

Post by *petermad »

Confirmed - it does not happen with "Unicode UTF16" or "Plain text+UTF8"
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.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.00rc1] Unintended CRLF after BOM in 'descript.ion' (File comments) when using 'Unicode UTF8'

Post by *ghisler(Author) »

This is intentional for backwards compatibility: This way, older TC versions and other programs which do not support UTF-8 can still copy the comments of files with English names because they see the first line with the BOM as a separate line and ignore it. If the BOM were on the same line as the first name, that file comment would not be copied.
Author of Total Commander
https://www.ghisler.com
Post Reply