delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/04/15/17:47:47

From: earnie_boyd AT yahoo DOT com (Earnie Boyd)
Subject: Re: cpio problem
15 Apr 1998 17:47:47 -0700 :
Message-ID: <19980415132818.13448.rocketmail.cygnus.gnu-win32@send1c.yahoomail.com>
Reply-To: earnie_boyd AT hotmail DOT com
Mime-Version: 1.0
To: Ian Collins <Ian AT kiwiplan DOT co DOT nz>
Cc: gnu-win32 AT cygnus DOT com





---Geoffrey Noer <noer AT cygnus DOT com> wrote:
>
> Ian Collins wrote:
> > 
> > I have just compiled and made cpio on gnu win32 b19.
> > I tested it with a 400Mb binary cpio file.
> > If I use,
> > 
> > cpio -icv < file.cpio
> > 
> > then it gets a premature end of file error.
> > 
> > However, if I use,
> > 
> > cpio -icv -I file.cpio
> > 
> > then it works OK.
> > 
> > What is stdin doing?
> 
> Almost certainly, the redirect is happening in text mode while the
> -I inputs the file in binary mode.

And what Geoffrey didn't say but inferred was that if you add
"binmode" to the list of values for the CYGWIN32 environment variable
and have your mounts set to text=binary then the redirect should work.

If you questions on how to do this then look at the FAQ and use the
search function of the mail archives.

> 
> -- 
> Geoffrey Noer
> noer AT cygnus DOT com

-        \\||//
---o0O0--Earnie--0O0o----
-earnie_boyd AT hotmail DOT com-
------ooo0O--O0ooo-------

_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019