public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* RE: B19: cp corrupts files with lots of zeros (Win95)
@ 1998-07-11 13:42 Sergey Okhapkin
  0 siblings, 0 replies; 4+ messages in thread
From: Sergey Okhapkin @ 1998-07-11 13:42 UTC (permalink / raw)
  To: gnu-win32

Christopher G. Faylor wrote:
> Sorry for the lack of response.  The problem with seeking past EOF
> has been fixed in our development tree, which means that it may
> be fixed in Sergey's coolview soon.

Done :-) Yesterday.

BTW, new ssh-1.2.26 binaries and the diff uploaded.

-- 
Sergey Okhapkin, http://www.lexa.ru/sos
Moscow, Russia


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

^ permalink raw reply	[flat|nested] 4+ messages in thread
* B19: cp corrupts files with lots of zeros (Win95)
@ 1998-07-09 13:22 Vince Del Vecchio
  0 siblings, 0 replies; 4+ messages in thread
From: Vince Del Vecchio @ 1998-07-09 13:22 UTC (permalink / raw)
  To: gnu-win32

This seems to have been reported before in various forms, but I have
never seen any official response and it doesn't seem to have been fixed.
It doesn't seem to be in the FAQ.

This is with b19.1 on Win95.

Create a file with a lot of zeros in it.  I did this with:
  perl -e "print qq{\0} x 20480, qq{\n}" > /tmp/mostly-empty
Now copy it using cp
  cp /tmp/mostly-empty /tmp/full-of-garbage
Now compare
  diff /tmp/mostly-empty /tmp/full-of-garbage
Binary files /tmp/mostly-empty and /tmp/full-of-garbage differ

(If it doesn't work, try again with a different second filename.
Sometime you get lucky and it works.)

This seems a bit absurd to me.  How can you rely on the tools if
cp silently corrupts your files?

The main problem seems that lseek past EOF doesn't work the same as on
Unix (or even as on NT).  I sent in a bug report, including a patch,
just about a year ago, but it seems to have been ignored.  (I also
reported the HAVE_SETMODE problem with diff, among other things, which
seems to have just been noticed again and fixed -- you'll have to excuse
me for being a little bitter.)  You can find it by searching for "lseek"
in the mailing list archives.

-Vince Del Vecchio
vince.delvecchio@analog.com
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

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

^ permalink raw reply	[flat|nested] 4+ messages in thread
* B19: cp corrupts files with lots of zeros (Win95)
@ 1998-07-08 12:23 Vince Del Vecchio
  0 siblings, 0 replies; 4+ messages in thread
From: Vince Del Vecchio @ 1998-07-08 12:23 UTC (permalink / raw)
  To: gnu-win32

This seems to have been reported before in various forms, but I have
never seen any official response and it doesn't seem to have been fixed.
It doesn't seem to be in the FAQ.

This is with b19.1 on Win95.

Create a file with a lot of zeros in it.  I did this with:
  perl -e "print qq{\0} x 20480, qq{\n}" > /tmp/mostly-empty
Now copy it using cp
  cp /tmp/mostly-empty /tmp/full-of-garbage
Now compare
  diff /tmp/mostly-empty /tmp/full-of-garbage
Binary files /tmp/mostly-empty and /tmp/full-of-garbage differ

(If it doesn't work, try again with a different second filename.
Sometime you get lucky and it works.)

This seems a bit absurd to me.  How can you rely on the tools if
cp silently corrupts your files?

The main problem seems that lseek past EOF doesn't work the same as on
Unix (or even as on NT).  I sent in a bug report, including a patch,
just about a year ago, but it seems to have been ignored.  (I also
reported the HAVE_SETMODE problem with diff, among other things, which
seems to have just been noticed again and fixed -- you'll have to excuse
me for being a little bitter.)  You can find it by searching for "lseek"
in the mailing list archives.

-Vince Del Vecchio
vince.delvecchio@analog.com
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1998-07-11 13:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <237C350B0201A8C0005.cygnus.gnu-win32@galahad.wisent.de>
1998-07-10 20:28 ` B19: cp corrupts files with lots of zeros (Win95) Christopher G. Faylor
1998-07-11 13:42 Sergey Okhapkin
  -- strict thread matches above, loose matches on Subject: below --
1998-07-09 13:22 Vince Del Vecchio
1998-07-08 12:23 Vince Del Vecchio

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).