delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,T_RP_MATCHES_RCVD |
X-Spam-Check-By: | sourceware.org |
To: | cygwin AT cygwin DOT com |
From: | ralf <wiesweg AT tacos-gmbh DOT de> |
Subject: | Re: How to setup cygwin to use always textmode |
Date: | Fri, 18 Mar 2011 16:48:09 +0000 (UTC) |
Lines: | 33 |
Message-ID: | <loom.20110318T173146-24@post.gmane.org> |
References: | <loom DOT 20110318T083042-612 AT post DOT gmane DOT org> <4D83695B DOT 8080200 AT redhat DOT com> <loom DOT 20110318T153128-549 AT post DOT gmane DOT org> <4D8377D6 DOT 1000406 AT redhat DOT com> <loom DOT 20110318T163044-157 AT post DOT gmane DOT org> <4D8386D8 DOT 8050105 AT redhat DOT com> |
Mime-Version: | 1.0 |
User-Agent: | Loom/3.14 (http://gmane.org/) |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Eric Blake <eblake <at> redhat.com> writes: > > On 03/18/2011 10:00 AM, ralf wrote: > > > > During setup of cygwin you could choose between UNIX ending und DOS ending. > > Which was a bug in the GUI for offering it in the first place, because > it basically set the text-mode mount flag on every single directory, > including /bin, which is counterproductive. > > But you didn't need the setup.exe radio button to get the same effect, > instead, just change your mounts manually (/etc/fstab) to set the > text-mode mount flag on the subset of directories where it matters to you. > In releases with this radio button files with windows filenames were opened as text-files like files which were on a filesystem with text-mode mount flag. Now they are always opened as binary files. I have no chance to open a file with windows-filename as text-file. This "feature" (open-mode of files with windows-filenames) has been lost, or do I misunderstand something? > > > And how can I get bash to write always CR? Adding \r to each echo,cat,awk? > > Only finding the places where this is necessary will take weeks. > > That's why we don't recommend text-mode mounts for cygwin-owned > directories. dos2unix can also do some smart conversions (it has smarts > to avoid corrupting binary files while still converting text files). > So your advice is to recode all scipts. Is that right? -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |