Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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" X-Mailer: The Bat! (v1.53t) Business Reply-To: "Gerrit P. Haase" 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: <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 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit 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/