[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Nano-devel] quick fix for do_credits(), plus DOS/Mac file importing fix
From: |
David Lawrence Ramsey |
Subject: |
[Nano-devel] quick fix for do_credits(), plus DOS/Mac file importing fix |
Date: |
Sat, 20 Jul 2002 22:04:24 -0700 (PDT) |
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.)
_____________________________________________________________
Sluggy.Net: The Sluggy Freelance Community!
_____________________________________________________________
Promote your group and strengthen ties to your members with address@hidden by
Everyone.net http://www.everyone.net/?btn=tag
nanomisc3.patch
Description: Binary data
- [Nano-devel] quick fix for do_credits(), plus DOS/Mac file importing fix,
David Lawrence Ramsey <=