public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Christopher Faylor <cgf@redhat.com>
To: cygwin@cygwin.com
Subject: Re: indent.exe strangeness
Date: Sun, 11 Nov 2001 08:26:00 -0000	[thread overview]
Message-ID: <20011115220832.GA11912@redhat.com> (raw)
In-Reply-To: <049e01c16e1e$e3efeab0$0200a8c0@lifelesswks>

On Fri, Nov 16, 2001 at 08:45:48AM +1100, Robert Collins wrote:
>
>===
>----- Original Message -----
>From: "Christopher Faylor" <cgf@redhat.com>
>To: <cygwin@cygwin.com>
>Sent: Friday, November 16, 2001 6:21 AM
>Subject: Re: indent.exe strangeness
>
>
>> On Thu, Nov 15, 2001 at 11:19:12PM +1100, Robert Collins wrote:
>>>>What about a patch that would fopen() every file in binmode and write
>>>>it back according to the mount?
>>>
>>>I think that textmode.o is the correct tool rather than a patch - >read
>>>every file in textmode (they are source after all :]) and write in
>>>textmode.
>>
>>No.  That would end up putting CRLF on every file.  I doubt that people
>>with binmode mounts would be pleased.
>
>They shouldn't care if all the text process tools have been ported
>correctly.  Thats the whole point of textmode and binmode ain't it?

Well, *I* care if a system which purports to emulate linux outputs
text files with CRLF line endings with no way to control this.

I would think that someone who is using binmode defaults would prefer
that their files not be translated from LF to CRLF line endings.  That
would bypass the whole point of the mount settings.  It would mean
that if you were trying to share files with UNIX, you'd have to
run the files through a "strip the CR" converter.

Maybe you could say the same thing for people who have text files in
MS-DOS format.  I'm sure that there is some other bit of crucial
software out there that croaks unless it is fed a text file with CRLF
endings but it is certainly not going to be a UNIX program.

As I said, the last I heard this was only an issue for notepad.
Although, I will admit to the horrifying possibility that it is all
versions of notepad, not just older versions.

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

  reply	other threads:[~2001-11-15 22:08 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-11  8:26 Robert Collins
2001-11-11  8:26 ` Christopher Faylor [this message]
2001-11-11  8:26   ` Larry Hall (RFK Partners, Inc)
2001-11-11  8:26 ` Kevin Schnitzius
2001-11-11  8:26   ` Christopher Faylor
2001-11-11  8:26     ` Robert Collins
2001-11-11  8:26       ` Gerrit P. Haase
2001-11-11  8:26         ` Christopher Faylor
2001-11-11  8:26         ` Robert Collins
2001-11-11  8:26           ` Christopher Faylor
2001-11-11  8:26             ` Gerrit P. Haase
2001-11-11  8:26               ` Christopher Faylor
2001-11-11  8:26           ` Gerrit P. Haase
     [not found] ` <156864442883.20011115234344@familiehaase.de>
2001-11-11  8:26   ` Robert Collins
  -- strict thread matches above, loose matches on Subject: below --
2001-11-11  8:26 BMetzenthen
2001-11-11  8:26 BMetzenthen

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=20011115220832.GA11912@redhat.com \
    --to=cgf@redhat.com \
    --cc=cygwin@cygwin.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).