1 line text file without EOL exposes lister bug. - Solved

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
MarkFilipak
Member
Member
Posts: 164
Joined: 2008-09-28, 01:00 UTC
Location: Mansfield, Ohio

1 line text file without EOL exposes lister bug. - Solved

Post by *MarkFilipak »

Symptom:
If a file has no EOL (i.e., it is one line and there is no [CR][LF]), the lister word wrap becomes inoperable and makes the sound that's heard when there's a permissions problem.

Repeatability:
Always.

Version:
8.0 (May 23, 2012).

Solution:
The lister is interpreting the file as binary, not text. Select text mode to 'fix' the problem. - M.
Last edited by MarkFilipak on 2012-07-27, 17:38 UTC, edited 1 time in total.
Hi Christian! Delighted customer since 1999. License #37627
umbra
Power Member
Power Member
Posts: 876
Joined: 2012-01-14, 20:41 UTC

Post by *umbra »

Hi, check if the Lister treats the file as a text or binary. Looks like that if a file doesn't end with a newline, TC thinks it's a binary -> wrap mode is permanently enabled.

BTW, there is no such symbol/mark as EOL. It's just a notification that you reached the end of file. And CRLF at the end of a text file is mostly a *nix habit.
Windows 10 Pro x64, Windows 11 Pro x64
User avatar
MarkFilipak
Member
Member
Posts: 164
Joined: 2008-09-28, 01:00 UTC
Location: Mansfield, Ohio

Post by *MarkFilipak »

umbra wrote:Hi, check if the Lister treats the file as a text or binary. Looks like that if a file doesn't end with a newline, TC thinks it's a binary -> wrap mode is permanently enabled.
Brilliant! Indeed, it was being interpreted as binary.

(Hollering...) Christian! When in doubt, default to text, please.
umbra wrote:BTW, there is no such symbol/mark as EOL. It's just a notification that you reached the end of file. And CRLF at the end of a text file is mostly a *nix habit.
Not so brilliant. There's no such thing as CRLF. It's [CR][LF]. Two bytes. Further, [CR][LF] at the end of a text file is NOT a *nix thing. It's an IBM thing. Unix uses [FF], one byte, to terminate a line.

Thanks for your help! - Mark.
Hi Christian! Delighted customer since 1999. License #37627
umbra
Power Member
Power Member
Posts: 876
Joined: 2012-01-14, 20:41 UTC

Post by *umbra »

Not so brilliant.
Ouch, that hurt. :lol:
There's no such thing as CRLF. It's [CR][LF]. Two bytes.
Irrelevant. It's only a mater of taste if and how you separate those bytes - their meaning is still obvious.
Further, [CR][LF] at the end of a text file is NOT a *nix thing. It's an IBM thing. Unix uses [FF], one byte, to terminate a line.
So many types of line-endings ... Just today I had to work with three of them. No wonder I wrote the wrong one. Again. :oops: And I guess you meant LF, not FF. :twisted:
Windows 10 Pro x64, Windows 11 Pro x64
User avatar
white
Power Member
Power Member
Posts: 6017
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white »

[mod]Moved to English forum.

White (moderator)
[/mod]
Post Reply