public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Peter Ring <PRI@cddk.dk>
To: "'earnie_boyd@yahoo.com'" <earnie_boyd@yahoo.com>,
	'cygwin users' <cygwin@sourceware.cygnus.com>
Subject: RE: LF vs. CR/LF (WAS: Problems with libtiff!)
Date: Mon, 21 Jun 1999 08:19:00 -0000	[thread overview]
Message-ID: <c=DK%a=_%p=CD-Danmark%l=CDDKSERVER-990621150319Z-15482@cddkserver.cddk.dk> (raw)

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

WARNING: multiple messages have this Message-ID
From: Peter Ring <PRI@cddk.dk>
To: "'earnie_boyd@yahoo.com'" <earnie_boyd@yahoo.com>,
	'cygwin users' <cygwin@sourceware.cygnus.com>
Subject: RE: LF vs. CR/LF (WAS: Problems with libtiff!)
Date: Wed, 30 Jun 1999 22:10:00 -0000	[thread overview]
Message-ID: <c=DK%a=_%p=CD-Danmark%l=CDDKSERVER-990621150319Z-15482@cddkserver.cddk.dk> (raw)
Message-ID: <19990630221000.dj-EZjLYIKyW0dZv4_PqhpEK4PPM6qcY9IUizT9K7MQ@z> (raw)

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

             reply	other threads:[~1999-06-21  8:19 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-06-21  8:19 Peter Ring [this message]
1999-06-30 22:10 ` Peter Ring
  -- strict thread matches above, loose matches on Subject: below --
1999-06-30 22:10 Parker, Ron
1999-06-21  9:17 Earnie Boyd
1999-06-30 22:10 ` Earnie Boyd
1999-06-21  7:22 Earnie Boyd
1999-06-30 22:10 ` Earnie Boyd
1999-06-21  7:10 Earnie Boyd
1999-06-30 22:10 ` Earnie Boyd
1999-06-21  5:10 Demmer, Thomas
1999-06-30 22:10 ` Demmer, Thomas
1999-06-21  5:02 Ulrich Koehler
1999-06-30 22:10 ` Ulrich Koehler
1999-06-18 12:14 Parker, Ron

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='c=DK%a=_%p=CD-Danmark%l=CDDKSERVER-990621150319Z-15482@cddkserver.cddk.dk' \
    --to=pri@cddk.dk \
    --cc=cygwin@sourceware.cygnus.com \
    --cc=earnie_boyd@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).