From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,eabc4e58782dd44f X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1995-01-24 12:02:28 PST Path: nntp.gmd.de!newsserver.jvnc.net!nntpserver.pppl.gov!princeton!udel!gatech!howland.reston.ans.net!news.moneng.mei.com!uwm.edu!caen!crl.dec.com!crl.dec.com!jac.zko.dec.com!eps.enet.dec.com!vandenheuvel From: vandenheuvel@eps.enet.dec.com (Hein RMS van den Heuvel) Newsgroups: comp.sys.dec Subject: Re: VAX C Binary Stream File Question Date: 24 JAN 95 12:02:28 Organization: Digital Equipment Corporation Message-ID: <3g3c07$6i1@jac.zko.dec.com> References: <3g0n5h$2b1@hopper.acm.org> NNTP-Posting-Host: AMUZED In article <3g0n5h$2b1@hopper.acm.org>, jgreen@ACM.ORG writes... >I'm trying to read binary data from a STREAM file and write >it out as a fixed-length record format file. The problem is, >the C library functions (or the RMS functions underneath) are >still interpreting control characters, thus scrambling >information. Example There is an unfortunate naming clash for STREAM files. For *decades* Digital had used the term STREAM/STM on RSTS/E, RSX and VMS to mean a very particular format with specific semantics: STREAM-11 / STM-11 Since, the industry, and Unix in particular, has used that same word but uses it to describe what on VMS would correspond better with STREAM_LF or even UNDEFINED files. The semantics for STM-11 tell RMS to SKIP leading zeros in records :-(. This is the way it is defined, so RMS (and the C RTL) obliges. Please consider trying STREAM_LF or UNDEFINED files for your work. Hope this helps, +--------------------------------------+ Hein van den Heuvel, Digital. | All opinions expressed are mine, and | "Makers of VMS and other | may not reflect those of my employer | fine Operating Systems." +--------------------------------------+