delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/01/19/15:17:45

From: John DOT Cooper AT citrix DOT com (John Cooper)
Subject: Re: uudecode?
19 Jan 1999 15:17:45 -0800 :
Message-ID: <u3e575y13.fsf.cygnus.gnu-win32@TENDLE.citrix.com>
References: <m102Jd8-0008SnC AT jacob DOT remcomp DOT fr>
Mime-Version: 1.0
To: root AT jacob DOT remcomp DOT fr (root)
Cc: gnu-win32 AT cygnus DOT com, john DOT cooper AT citrix DOT com

root AT jacob DOT remcomp DOT fr (root) writes:

 > Let's stop this uuencode/decode discussion.  Here are two small little
 > programs in that old but powerful language we all know somehow.

These also don't work (see below).

This doesn't look like a "mount" problem?  The cygwin FAQ states about mount:

  "The '-b' option to mount mounts the mountpoint in binary mode where text and
   binary files are treated equivalently. This should only be necessary for badly
   ported Unix programs where binary flags are missing from open calls."

.... and your code does open the files in binary mode, so shouldn't it work
regardless of mount?

It even seems to fail when I do mount a directory in binary mode...

If nobody has a solution, I guess I'll try debugging it when I get time.

    --- John

  $ cp c:/winnt/NOTEPAD.EXE n.exe
  $ ls -l n.exe
  -rwxrwxrwx   1 JCooper          Domain_Users    45328 Jan 19 10:28 n.exe*
  $
  $ ./uuencode n.exe n.exe > n.uu
  $ ls -l n.uu
  -rw-rw-rw-   1 JCooper          Domain_Users    62479 Jan 19 10:28 n.uu
  $
  $ ./uudecode n.uu
  $ ls -l n.exe
  -rwxrwxrwx   1 JCooper          Domain_Users      261 Jan 19 10:28 n.exe*
  $

-
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