delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT sources DOT redhat DOT com |
Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
From: | Chris Faylor <cgf AT cygnus DOT com> |
Date: | Sat, 29 Jul 2000 12:06:26 -0400 |
To: | cygwin AT sources DOT redhat DOT com |
Subject: | Re: binmode in cygwin-1.1.3 |
Message-ID: | <20000729120625.A29889@cygnus.com> |
Reply-To: | cygwin AT sources DOT redhat DOT com |
Mail-Followup-To: | cygwin AT sources DOT redhat DOT com |
References: | <16622025911 DOT 20000729193629 AT raid DOT ru> |
Mime-Version: | 1.0 |
User-Agent: | Mutt/1.2i |
In-Reply-To: | <16622025911.20000729193629@raid.ru>; from goga@raid.ru on Sat, Jul 29, 2000 at 07:36:29PM +0600 |
On Sat, Jul 29, 2000 at 07:36:29PM +0600, Igor Afanasyev wrote: > >In cygwin-1.1.3 when I extract files from a tar archive containing files >with CRLF and redirect stdout to a file I get the file with CRCRLF. >(tar -O -xf file.tar > qqq) > >To prevent this in cygwin-1.1.2 I set CYGWIN=binmode, but this doesn't work >in cygwin-1.1.3. > >Can anyone please suggest what the problem is? Sorry. It looks like I screwed up the correspondence between "CYGWIN=binmode" and stdin/stdout. The only work-arounds that I can think of are: 1) Fix tar so that -O sets stdout to O_BINARY (the correct fix). 2) Do something like: sh -c "tar -O -xf file.tar > qqq" and make sure that qqq goes to a directory that is mounted with the -b option. I'll release a new version of cygwin after I've seen a few more reports on 1.1.3 here, just to make sure that there are no other problems with this release. cgf -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |