delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/12/10/19:04:19

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
Message-ID: <3C153B6F.5573A7F0@dna.gov.ar>
Date: Mon, 10 Dec 2001 19:47:11 -0300
From: Marta Ghidella <mghidella AT dna DOT gov DOT ar>
X-Mailer: Mozilla 4.7 [en] (Win98; I)
X-Accept-Language: en
MIME-Version: 1.0
To: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
CC: djgpp AT delorie DOT com
Subject: Re: fortran
References: <3C0FB699 DOT 5BB2543 AT dna DOT gov DOT ar> <2110-Thu06Dec2001213938+0200-eliz AT is DOT elta DOT co DOT il> <3C117177 DOT 76B87214 AT mail DOT abaconet DOT com DOT ar> <2950-Sat08Dec2001100020+0200-eliz AT is DOT elta DOT co DOT il>
Reply-To: djgpp AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019