uudecode?

Bernard Dautrevaux DAUTREVAUX@microprocess.com
Sun Jan 31 23:52:00 GMT 1999


> -----Message d'origine-----
> De:	John Cooper [SMTP:John.Cooper@citrix.com]
> Date:	lundi 18 janvier 1999 11:33
> À:	mh@mike.franken.de
> Cc:	gnu-win32@cygnus.com
> Objet:	Re: uudecode?
> 
> mh@mike.franken.de (Michael Hirmke) writes:
> 
>  > >Can anyone point me to a reliable version of the command line
>  > >uudecode.exe/uuencode.exe utilities for NT 4.0?
>  > 
>  > Don't know, what you mean by reliable, but you can get the
> sharutils-4.2c
>  > package, which contains uuencode/uudecode among other utilities
> 
> These just don't work at all:
> 
>   $ cp c:/WINNT/NOTEPAD.EXE n.exe
>   $ ./n.exe      # works fine!
>   $ uuencode n.exe n.exe > n.uu
>   $ rm n.exe
>   $ ls n.*
>   n.uu
>   $ uudecode n.uu
>   $ ls n.*
>   n.exe*  n.uu
>   $ ./n.exe
>   zsh: exec format error: .\n.exe
>   $
>   $ ls -l n.exe
>   -rwxrwxrwx   1 JCooper          Domain_Users      594 Jan 18 10:37
> n.exe*
>   $
> 
> Any ideas what's wrong with it?
> 
I'm  not sure, but I'll bet that you have to sligthly change the
uudecode source code to ensure that the open of the output file is done
in binary mode : open(... O_BINARY) or fopen(..., "wb")). Your problem
is most surely this infamous text!=binary feature :-( of Losedows...

Regards,

		Bernard
>  
------------------------------------------------------------------------
------
Bernard Dautrevaux
Microprocess Ingéniérie
97 bis, rue de Colombes
92400 COURBEVOIE
FRANCE
Tel:	+33 (0) 1 47 68 80 80
Fax:	+33 (0) 1 47 88 97 85
e-mail:	dautrevaux@microprocess.com
	b.dautrevaux@usa.net
------------------------------------------------------------------------
------
>  
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".



More information about the Cygwin mailing list