lout-users
[Top][All Lists]
Advanced

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

Re: Lout for DOS


From: Joe Smith
Subject: Re: Lout for DOS
Date: Thu, 13 Apr 95 10:19:58 -0400

> Mostly it did the first pass on the document, but then bailed out in
> your very cleverly set up binary search in a file. I guess there's
> some problem in this region, that doesn't affect the unix
> distribution.

Sounds suspiciously like the old 'lseek' in a text file problem.  Unix
makes no distinction between 'text' and 'binary' files.  DOS (and I
presume OS/2) do distinguish between them (or, I should say, the
common C stdio libraries do) so that seeking to random positions in a
text file works on Unix but not on other OS's.  Usually all you need
to do is open the text file in binary mode, which supresses any
conversion of CRLF to LF.  Unfortunately, the Unix code often isn't
prepared to deal with the 'extra' CR at the end of the line, so the
problem can get messy.

Man, I'm glad I can just run Linux!

<Joe
-- 
 Joe Smith
 University of Pennsylvania                address@hidden
 Department of Physiology                          (215) 898-0485 - work
 Philadelphia, PA 19104-6085                       (609) 854-6428 - home


reply via email to

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