This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: 1.5.24: data corruption problem with popen and gzip on a text mounted filesystem

Christopher Faylor <cgf-use-the-mailinglist-please <at>> writes:

> gzip is linked with binmode.o, like most of the things that I maintain
> (i.e., no upstream patch really necessary - isn't that my call?).  If
> I use a really simple test case of just outputting directly to a text
> mode mount, it works fine.

binmode.o to the contrary, there is indeed a problem:

$ cd text
$ ls
$ strace -o traceA /bin/ls > /dev/null
$ cp traceA traceB
$ gzip < traceA > traceA.gz
$ gzip < traceB | cat > traceB.gz
$ ls -l
total 88
-rwxr-xr-x 1 eblake Domain Users 33136 Jul 23 11:12 traceA*
-rw-r--r-- 1 eblake Domain Users  7067 Jul 23 11:12 traceA.gz
-rwxr-xr-x 1 eblake Domain Users 33136 Jul 23 11:12 traceB*
-rw-r--r-- 1 eblake Domain Users  7033 Jul 23 11:12 traceB.gz

traceA.gz has 34 spurious \r characters.

(unrelated: strace build July 20 from CVS is behaving a bit weird; it did not 
want to do a path search when I tried 'strace -o traceA ls')

Eric Blake

Unsubscribe info:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]