From owner-freebsd-questions Sun Feb 13 14:54:37 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail.HiWAAY.net (fly.HiWAAY.net [208.147.154.56]) by builder.freebsd.org (Postfix) with ESMTP id 41FDE4608 for ; Sun, 13 Feb 2000 14:54:31 -0800 (PST) Received: from nospam.hiwaay.net (tnt8-208-170-119-91.dialup.HiWAAY.net [208.170.119.91]) by mail.HiWAAY.net (8.9.3/8.9.0) with ESMTP id QAA15245; Sun, 13 Feb 2000 16:54:37 -0600 (CST) Received: from localhost (localhost [127.0.0.1]) by nospam.hiwaay.net (8.9.3/8.9.3) with ESMTP id QAA46738; Sun, 13 Feb 2000 16:54:22 -0600 (CST) (envelope-from dkelly@nospam.hiwaay.net) Message-Id: <200002132254.QAA46738@nospam.hiwaay.net> X-Mailer: exmh version 2.1.1 10/15/1999 To: Ariel Burbaickij Cc: freebsd-questions@FreeBSD.ORG From: David Kelly Subject: Re: misfeature in mtools ? In-reply-to: Message from Ariel Burbaickij of "Sun, 13 Feb 2000 22:44:40 +0100." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 13 Feb 2000 16:54:22 -0600 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Ariel Burbaickij writes: > The story goes like following:Got discette as aad-on to the book Mastering > Algorithms in C.There was file examples.zip there.Results: > > mcopy A:/examples.zip . (works fine in any case) > mcopy -t A:/examples.zip .(works fine also) > > gzip examples.zip (worked just in first case) > So after some re-think the problem is with gzip and it probably does use > every character even unprintable in compressing shema.Idiotic,huh? > Any ideas ? What do you think your problem is? The examples you give work exactly as I would expect. mcopy -t will do a DOS to Unix newline conversion. Ie: deletes (0x13) everywhere it finds it. In a .zip file the 0x13 does not mean what it would mean in a .txt file. So with bytes missing the mcopy -t version will blow up in gzip. After you copy the .zip file to your HD, use "gunzip -a" to "fix" the line termination problems. -- David Kelly N4HHE, dkelly@hiwaay.net ===================================================================== The human mind ordinarily operates at only ten percent of its capacity -- the rest is overhead for the operating system. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message