This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: LF vs. CR/LF (WAS: Problems with libtiff!)


What is the correct way to open, read, and write a 'text' file on a
filesystem shared between a number of different operating systems?
(please note that this is in effect what cygwin amounts to).

The scenario could be a 'text' file shared between MacOS, WinNT, and
some UNIX-like OS. The file might be shared in several ways, some of
which would make it impractical (if not outright nonsense) to talk about
one specific OS 'hosting' the file.

Some applications, e.g. emacs, try to guess from the file's content what
to do. Obviously, this works only for interactive applications.

I won't argue with the benefits of explicitly opening files 'rb'. I just
wonder why anyone would ever want to do anytning else?

Kind regards
Peter Ring


-----Original Message-----
From: Earnie Boyd [mailto:earnie_boyd@yahoo.com]
Sent: Monday, June 21, 1999 4:29 PM
To: cygwin users
Subject: Re: LF vs. CR/LF (WAS: Problems with libtiff!)


<snip>

Welcome to the world of portable programming.

<snip>

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]