[Top][All Lists]

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

Re: [Nano-devel] quick fix for do_credits(), plus DOS/Mac file importing

From: Chris Allegretta
Subject: Re: [Nano-devel] quick fix for do_credits(), plus DOS/Mac file importing fix
Date: Sun, 21 Jul 2002 08:44:39 -0700
User-agent: Mutt/

On Sat, Jul 20, 2002 at 10:04:24PM -0700, David Lawrence Ramsey wrote:
> The attached patch contains the do_credits() fix from
> before, plus a fix for the DOS/Mac file importing problems I
> reported earlier.  (There are actually two fixes needed for
> the latter.  First, for bug1.txt, make sure that if the last
> character in the file is read on a line by itself and it's a
> '\r', read it in properly as a Mac-formatted line; if this
> isn't done, the checks for '\r''s being the last character
> read won't catch it and it won't be properly treated as a
> line or, actually, read in at all.  Second, for bug2.txt, if
> the file doesn't end in a newline, and the last character of
> that line is a '\r', set fileformat to 2 [Mac] if it isn't
> already set; without this, read_line will think it's in DOS
> format, since it ends in '\r', and erroneously set
> fileformat to 1.)

Modded version committed and credited.

Chris A
Chris Allegretta

"Share and Enjoy" - Douglas Adams, 1952 - 2001

reply via email to

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