[PATCH, fortran, committed] intrinsic.texi: fix typo.

Brooks Moses bmoses@stanford.edu
Fri Oct 13 17:50:00 GMT 2006


Daniel Franke wrote:
>>Committed as obvious.
>>
>>--------------------------------------------------------------------
>>2006-10-12  Brooks Moses  <bmoses@stanford.edu>
>>
>>	* intrinsic.texi (STAT): Fixed a format typo in sample code.
>>
>>--------------------------------------------------------------------
> 
> 
> -    WRITE (*, FMT="('File mode:',               T30, o19)") buff(3)
> +    WRITE (*, FMT="('File mode:',               T30, I19)") buff(3)
> 
> I still don't know all formatting options by heart, but this was meant to be 
> octal output of the file mode, i.e. 644 for "-rw-r--r--" ?! IIRC, it worked 
> as such. Is this a non-standard usage of the 'o' format?

...Right.

No, this is a good example of why "committed as obvious" changes should 
be explicitly posted to the group!  :)  Thanks for catching it, and I'll 
revert the patch.

On second thought, it would probably be useful to explicitly note that 
it was octal, so I committed the following obvious-I-hope patch, which 
reverts this and puts a note in the string to explicitly point out that 
it's octal.

In any case, my apologies for the mispatch.

- Brooks

----------------------------------------------------------------------
2006-10-12  Brooks Moses  <bmoses@stanford.edu>

	* intrinsic.texi (STAT): Reverted a format in example code to
	octal; noted this in accompanying string.
----------------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: intrinsic-octal.diff
Type: text/x-patch
Size: 691 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20061013/14b1debe/attachment.bin>


More information about the Fortran mailing list