Mail Archives: djgpp/2001/12/10/19:04:19
Dear Eli:
Thank you very much for your message below.
I found the characters you mention, therefore I think the problem has to
be what you suggest.
The first occurrence is in the file header, which has the number 10 as
integer*4. Where it should say 000a it says 0a0d. And there are more.
The file size is 4143 bytes (I said 4137 before). It should be 4136.
I find five occurrences of the combination 0a0d, using od -h
<binaryfile>.
Other people who also sent me mail do not have the problem, as they use
more recent versions of g77. So I conclude I have to do that, use a
newer version.
I am glad to see that the error is detected, and the problem will be
solved as soon as I get a new version.
Thank you very much for your help.
My best regards,
Marta
Eli Zaretskii wrote:
>
> > Date: Fri, 07 Dec 2001 22:48:39 -0300
> > From: Marta Ghidella <mghidella AT mail DOT abaconet DOT com DOT ar>
> >
> > The program creates an unformatted sequential file, apparently without
> > problems, but I see it has 4137 bytes instead of 4136 as it should.
>
> Does the extra character have the code of the CR character, 0Dh, and
> does it follow a character whose code is 0Ah? If so, this would mean
> that there's some bug in the g77 library, which causes it to fail to
> open files in binary mode when you use 'unformatted'.
>
> You could use some hex-dump utility, such as `od' (from GNU
> Textutils) to find out the answer to the question I asked.
--
Marta E. Ghidella tel: +54-11-4812-6313
Instituto Antartico Argentino fax: +54-11-4813-7807
Cerrito 1248 e-mail: mghidella AT dna DOT gov DOT ar
1010 Buenos Aires - ARGENTINA mghidella AT mail DOT abaconet DOT com DOT ar
- Raw text -