From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23777 invoked by alias); 4 Sep 2002 21:57:17 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 23749 invoked from network); 4 Sep 2002 21:57:17 -0000 Received: from unknown (HELO mail.broadpark.no) (217.13.4.2) by sources.redhat.com with SMTP; 4 Sep 2002 21:57:17 -0000 Received: from dualc2000 (22.80-202-24.nextgentel.com [80.202.24.22]) by mail.broadpark.no (Postfix) with SMTP id 085267D9D for ; Wed, 4 Sep 2002 23:57:16 +0200 (MEST) From: "Dan Vasaru" To: Subject: Proposal for new CYGWIN flag: notextmode masks away O_TEXT Date: Wed, 04 Sep 2002 14:57:00 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 X-SW-Source: 2002-09/txt/msg00148.txt.bz2 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/