From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2103 invoked by alias); 15 Nov 2001 15:55:43 -0000 Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@sources.redhat.com Received: (qmail 2081 invoked from network); 15 Nov 2001 15:55:41 -0000 Received: from unknown (HELO pille.addcom.de) (62.96.128.34) by sourceware.cygnus.com with SMTP; 15 Nov 2001 15:55:41 -0000 Received: (qmail 14042 invoked by uid 502); 15 Nov 2001 15:55:38 -0000 Received: from d-dialin-2249.addcom.de (HELO iokaste.192.168.5.5) (62.96.168.89) by pille.addcom.de with SMTP; 15 Nov 2001 15:55:38 -0000 Received: from 192.168.5.3 (192.168.5.3) by iokaste.192.168.5.5 (EMWAC SMTPRS 0.81) with SMTP id ; Thu, 15 Nov 2001 17:13:48 +0100 Date: Sun, 11 Nov 2001 08:26:00 -0000 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@sources.redhat.com Subject: Re: indent.exe strangeness In-Reply-To: <02ba01c16dcf$bc7b2750$0200a8c0@lifelesswks> References: <20011115030821.GA3841@redhat.com> <00a101c16d86$54e0d2f0$0200a8c0@lifelesswks> <1543920176.20011115124023@familiehaase.de> <02ba01c16dcf$bc7b2750$0200a8c0@lifelesswks> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-SW-Source: 2001-11/txt/msg00305.txt.bz2 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.haase@convey.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/