[Top][All Lists]

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

Re: [Nano-devel] address@hidden: Bug#451659: nano: does wrong line-conve

From: David Ramsey
Subject: Re: [Nano-devel] address@hidden: Bug#451659: nano: does wrong line-converting]
Date: Sat, 17 Nov 2007 14:55:19 -0600

On Nov 17, 2007 12:30 PM, Jordi Mallach <address@hidden> wrote:
> Hi,
> This bug looks bad enough to have a close look.

Fortunately, it's not quite as bad as it sounds.  nano's just being
overzealous about DOS/Mac file conversions and treating the carriage
return in the middle of the file as a Mac line ending.  I've fixed it in
CVS by only converting a file type from Unix to DOS or Mac if the
carriage return occurs on the first line, which should make false
positives like this much less likely.  (It's not perfect, but it really
can't be, given that there's no way to know for certain what format a
file is supposed to be in, and if all else fails, there's still
--noconvert.)  A patch to fix it in 2.0.6 is attached.

Attachment: nano206eolfixes-patch.txt
Description: Text document

reply via email to

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