X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Mon, 28 Jun 2010 17:03:42 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: default text mode Message-ID: <20100628150342.GF6310@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <4C28834A DOT 9040001 AT ivu DOT de> <20100628113502 DOT GD6310 AT calimero DOT vinschen DOT de> <4C288E13 DOT 1090208 AT ivu DOT de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4C288E13.1090208@ivu.de> User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Jun 28 13:57, Jan Lübbe wrote: > Am 28.06.2010 13:35, schrieb Corinna Vinschen: > >Role? The automatism is to use binary mode unless /etc/fstab says > >something else. Other than that, why would you do that at all? > >If you need textmode for something, do it under some mount point > >of your own. There's no good reason to use textmode for the system > >directories, unless Cygwin is too fast on your machine. > > Cygwin is not to fast, but if I run sed on files all Windows EOL are > replaced with Unix EOL. That damages my version control. Of course I > can run u2d on that files manually, but I don't want to remind that > all time. > > The files itself are mounted in text mode. They are under > /cygdrive/d/Projekte/. But sed changes the EOL anyway. Because sed > is saved in /usr/bin, which is mounted in binary mode, I thought > this is the reason for sed doing so. Nope. Sed is a stream editor. Usually it does not open the output file by itself but just writes to stdout. Whoever opened the stdout stream has opened it in binary mode. Are you sure the file is actually written to the textmode mounted area? Maybe it's written to /tmp and then just moved over. That would explain the behaviour quite naturally. > Also one cannot change the way of mounting /, /usr/bin, and /usr/lib > in fstab, as you can see: > > >% cat /etc/fstab > ># For a description of the file format, see the Users Guide > ># http://cygwin.com/cygwin-ug-net/using.html#mount-table > > > >none /cygdrive cygdrive text,posix=0,user 0 0 > > There is only the possibility to change the way of mounting /cygdrive. Erm... > Thanks for further advises. The advice is given in the /etc/fstab file itself: # For a description of the file format, see the Users Guide # http://cygwin.com/cygwin-ug-net/using.html#mount-table Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple