Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: $Revision: 1.6.2.14 $; site siemens.UUCP Path: utzoo!watmath!clyde!cbosgd!ihnp4!houxm!mhuxt!mhuxr!ulysses!allegra!princeton!siemens!jrv From: jrv@siemens.UUCP Newsgroups: net.sources Subject: Re: decode (or rather uudecode) Message-ID: <28600017@siemens.UUCP> Date: Mon, 17-Mar-86 10:17:00 EST Article-I.D.: siemens.28600017 Posted: Mon Mar 17 10:17:00 1986 Date-Received: Mon, 24-Mar-86 00:25:50 EST References: <116@rruxu.UUCP> Lines: 19 Nf-ID: #R:rruxu:-11600:siemens:28600017:000:677 Nf-From: siemens!jrv Mar 17 10:17:00 1986 REMINDER: MS-DOS uses CR/LF as the line terminator. When opening the output file to receive an executable such as the output from uudecode the file must be opened in untranslated mode! Every compiler I have used will write two bytes, i.e. CR and LF, whenever the LF character is written to a file which is opened in normal mode. This is obviously not what one wants. With Lattice-C open the output file with a mode of "wb". This puts it into untranslated mode. You can also accomplish the same thing by setting the most significant bit of the external variable '_fmode'. Jim Vallino Siemens Research and Technology Lab. Princeton, NJ {allegra,ihnp4}!princeton!siemens!jrv