monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Monotone-devel] line endings as project policy


From: Nuno Lucas
Subject: Re: [Monotone-devel] line endings as project policy
Date: Wed, 22 Nov 2006 23:35:34 +0000

On 11/22/06, Thomas Moschny <address@hidden> wrote:
On Wednesday 22 November 2006 22:33, Nuno Lucas wrote:
> Don't mix character encoding problems with the end-of-line issue. They
> are very different beasts.

But in order to know what you are doing when converting different types of eol
into each other, you have to know what the encoding of the file is, not?

Or, at least, you have to know whether it is encoded in one of the many
encodings that extend ascii in the one way or the other.

Line endings don't have a direct relation to character encoding. It's
true that in theory you would need to know the character encoding to
know what a line ending is (like the mentioned line ending Unicode
character), but in practice there are only 3 "standard" line endings
(LF, CR-LF and CR) and if some file uses any other you would need to
use a special program for it, so it's better to treat the file as
binary.

An ASCII text can use any of the 3 line-endings. Some with an UTF-8
text, ISO-8859-1, or any other. No way to know the line ending by the
character encoding.


Regards,
~Nuno Lucas




reply via email to

[Prev in Thread] Current Thread [Next in Thread]