delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/11/15/10:57:00

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Thu, 15 Nov 2001 16:49:04 +0100
From: "Gerrit P. Haase" <freeweb AT nyckelpiga DOT de>
X-Mailer: The Bat! (v1.53t) Business
Reply-To: "Gerrit P. Haase" <cygwin AT cygwin DOT com>
Organization: convey Information Systems GmbH
X-Priority: 3 (Normal)
Message-ID: <10318841252.20011115164904@familiehaase.de>
To: cygwin AT sources DOT redhat DOT com
Subject: Re: indent.exe strangeness
In-Reply-To: <02ba01c16dcf$bc7b2750$0200a8c0@lifelesswks>
References: <FFC7351A4632D411820000508B2E1C2C01CB16B1 AT hqexch01 DOT citrix DOT com>
<20011115030821 DOT GA3841 AT redhat DOT com> <00a101c16d86$54e0d2f0$0200a8c0 AT lifelesswks>
<1543920176 DOT 20011115124023 AT familiehaase DOT de>
<02ba01c16dcf$bc7b2750$0200a8c0 AT lifelesswks>
MIME-Version: 1.0

Hallo Robert,

2001-11-15 16:31:49, du schriebst:

>>>> Actually if you add /usr/lib/automode.o it might just cause this to

> Uhmm I said "write in binary mode" and thats what you just said "output
> file is in binmode". I don't understand where I was wrong.

>> 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.

Oops sorry, I meant open() in textmode and write according to the mounttype,
in binmode or in textmode.
If I use textmode as default wouldn't every file be written in textmode?

I patched only two lines now and it works ok., well if you open a file it
is read in textmode and on a textmount it will be written in textmode, on
a binmode mount it will be written in binmode. Vice versa for texmode files.

Then it depends on the mount type and not on how the lineendings of the input
file were.

Gerrit
-- 
convey Information Systems GmbH                   http://www.convey.de/
                                                  Vitalisstraße 326-328
Gerrit P. Haase                                   D-50933 Köln
gerrit DOT haase AT convey DOT de                            Fon: ++49 221 6903922


--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019