monotone-devel
[Top][All Lists]
Advanced

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

[Monotone-devel] Re: Bug in CRLF conversions


From: Bruce Stephens
Subject: [Monotone-devel] Re: Bug in CRLF conversions
Date: Mon, 30 Jan 2006 10:50:11 +0000
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Richard Levitte - VMS Whacker <address@hidden> writes:

[...]

> Or any line ending.  It doesn't really matter because for text
> files, the line ending isn't really interesting in itself, it's just
> a layout indicator, saying "break the line here".  (I realised this
> yesterday, while discussing this issue)

OK, I can go with that.  It has the major advantage that it's easy to
understand.  

So we make some distinction between text and binary files (or
linesep-treated and non-linesep-treated, or something), and for text
files, we just look for any line separators, and those separate lines
(in the database we always use LF).  And when producing output from
the database (whether for sticking on disk, or passing to merge
hooks), by default we use native line endings (and maybe we have a
file attribute or a hook to allow that to be changed).

I think that would always do.  I have a vague feeling that I've
written shell scripts with lines with embedded CRs in the past.  But
maybe I'm misremembering, or maybe that doesn't matter (since if it
does I can work around it, and it won't happen often).

[...]





reply via email to

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