Open e673 opened 3 years ago
BOM in the middle of text. is it legal at all?
Yes, it is not punishable for files to contain any sequence of bytes. For example, in appears in RFC 5424 - every message follows after text header and is prefixed with BOM mark. So viewing log file is buggy.
Not reproduced for me in master. Check now, please!
When BOM mark appears in the middle of the text (i.e. in log files), an extra space is added after the next word when using 65001 encoding. For example, file [61 EF BB BF 62 20 63] should be presented as:
but
is observed:
When trying to edit such file, a mess with characters appearing in wrong place happens around this place.
bug.zip