[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to see the raw line endings in a file?
From: |
Eli Zaretskii |
Subject: |
Re: How to see the raw line endings in a file? |
Date: |
Sun, 31 Mar 2019 22:10:49 +0300 |
> From: Steinar Bang <sb@dod.no>
> Date: Sun, 31 Mar 2019 20:57:55 +0200
>
> The reason I'm asking this question is that I am encountering a problem
> noone else seems to be encountering, and I was wondering if I could
> trust what emacs is telling me
Yes, you can.
> > In general, when a file has mixed EOLs, what will show in the mode
> > line and what in the buffer is determined by sheer luck, because Emacs
> > examines only a small portion of the file to determine the EOL format,
> > and depending on where you have CRLF and where just LF you can end up
> > with either "DOS" or ^M characters.
>
> Hm... so, if the is not detected as "DOS" and I mainly look at the start
> of the file, then it looks like a unix file, but could have an CR
> further down...?
Yes, it could.
RE: How to see the raw line endings in a file?, Drew Adams, 2019/03/31