From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,4b604acc3b9aa7bf,start X-Google-Attributes: gid1164f8,public From: heid_james@lanl.gov (James L. Heid) Subject: DEC C Weirdness Date: 1996/07/12 Message-ID: #1/1 X-Deja-AN: 168085680 organization: Los Alamos National Laboratory newsgroups: comp.sys.dec This happened to me on OpenVMS VAX V6.1 running DEC C V5.0-003 There is a real application behind all this, but I will post the results of a test in the hope that someone can explain what is happening. I have a file that has non-printable characters in it. Using the dump utility I can tell that one particular 3 byte sequence looks like this (after putting it in left-to-right format) 00ff7f. I wrote a program that opens the input file and an output file and does the following: while ((c = fgetc(fp) != EOF) putc(c, outfile); That's all... just that. I expected, therefore, that I would create an identical file and I would still find this 3-byte sequence where it was before. However, what I found instead in place of this sequence was the linefeed byte, 0a. This sequence occurs 2 times in the file, and both times this happens. Can someone explain this to me? Jim Heid Los Alamos National Laboratory