This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project. See the Cygwin home page for more information.
[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index] [Subject Index] [Author Index] [Thread Index]

Re: More corruption [Re: Problems with ncftp]



---Frank McIngvale <frankm@HiWAAY.net> wrote:
>
> 
> Hm, it's apparently not just a problem with ncftp.
> The following also causes file corruption:
> 
> $ bzip2 -9k bigfile
> $ bzip2 -dc bigfile.bz2 | bzip2 -9 > out.bz2
> 
> bigfile     = 21,301,412 bytes
> bigfile.bz2 =  3,338,162 bytes
> out.bz2     =  3,351,827 bytes (!!!)
> 
> $ bzip2 -t out.bz2
> 
>   out.bz2: data integrity (CRC) error in data
> 
8<

This problem is the pipe and redirection when they are set to text
mode.  If before starting bash you `SET CYGWIN=binmode' this problem
will go away.
==
-                        \\||//
-------------------o0O0--Earnie--0O0o-------------------
--                earnie_boyd@yahoo.com               --
-- http://www.freeyellow.com/members5/gw32/index.html --
----------------------ooo0O--O0ooo----------------------

PS: Newbie's, you should visit my page.
_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com


--   
Want to unsubscribe from this list?                             
Send a message to cygwin-unsubscribe@sourceware.cygnus.com