| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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 |
| From: | "Dan Vasaru" <dvasaru AT broadpark DOT no> |
| To: | <cygwin AT cygwin DOT com> |
| Subject: | Proposal for new CYGWIN flag: notextmode masks away O_TEXT |
| Date: | Wed, 4 Sep 2002 23:57:15 +0200 |
| Message-ID: | <CHEDKHJJDLOCCOFLMGEACEJGCLAA.dvasaru@broadpark.no> |
| MIME-Version: | 1.0 |
| X-Priority: | 3 (Normal) |
| X-MSMail-Priority: | Normal |
| In-Reply-To: | <20020904110128.B1213@cygbert.vinschen.de> |
| X-MimeOLE: | Produced By Microsoft MimeOLE V6.00.2600.0000 |
| Importance: | Normal |
My apologies if this has already been discussed: I would just love a CYGWIN variable setting that would make cygwin ignore the O_TEXT flag from all programs, thus bypassing any translation code in cygwin1.dll. May I suggest "notextmode", if not taken already :) At work, we're aiming for maximum UNIX compatibility between all files across win32/linux/solaris. All this O_TEXT stuff really, really gets in the way. All our mounts are binmode, yet the fact that some programs set the O_TEXT flag, and cygwin doesn't ignore it, will at some point add a stray carriage return (see various threads on CRLF) in various pipes and redirects. We'd rather patch/wrap all non-cygwin utilities in our tool chain (i.e. cl.exe) to output binmode only. Thinking of it, one could add an lf-ize utility that invokes a program and adds CR to input while removing them from output. This would keep the pipes clear of carriage returns. lfize cl.exe | grep -v "^$" lfize cat textfile | sed | awk I freely admit not offering much thought to CTRL+Z. Dan -- 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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |