View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0000436||file||General||public||2023-03-23 15:17||2023-05-21 17:10|
|Fixed in Version||5.45|
|Summary||0000436: "file" reports incorrect line ending for a file with CR on 65536th byte|
|Description||I have a file that is reported as having "CRLF, CR line terminators":|
$ file xxx/file.cpp
xxx/file.cpp: C source, ISO-8859 text, with CRLF, CR line terminators
After numerous attempts at re-saving it with uniform line terminators, it still reported an inconsistency.
Turns out that "file" reads at most 65536 bytes to check for encoding and such, and this particular file has a CR exactly on the 65536th byte. So "file" doesn't see the LF on the 65537th byte and reports an inconsistency.
This is obviously not a big problem, but I believe it's worth fixing if possible.
|Tags||No tags attached.|
|2023-03-23 15:17||fstanchina||New Issue|
|2023-05-21 17:09||christos||Assigned To||=> christos|
|2023-05-21 17:09||christos||Status||new => assigned|
|2023-05-21 17:10||christos||Status||assigned => resolved|
|2023-05-21 17:10||christos||Resolution||open => fixed|
|2023-05-21 17:10||christos||Fixed in Version||=> 5.45|
|2023-05-21 17:10||christos||Note Added: 0003934|