string_0xfe_0xff_1.f90
Brooks Moses
brooks.moses@codesourcery.com
Tue Jan 16 00:07:00 GMT 2007
Thomas Koenig wrote:
> +++ ChangeLog (working copy)
> @@ -1,3 +1,9 @@
> +2007-01-15 Thomas Koenig <Thomas.Koenig@online.de>
> +
> + * gfortran.dg/string_0xfe_0xff_1.f90: Use char instead
> + of achar for 0xff to avoid the "Extended ASCII not
> + implemented" error message.
For the record, that's not just a workaround, but the right thing to do
according to the standard. CHAR(255) produces the character with a
sequence number of 255, which is what you want. ACHAR(A) nominally
produces the character that corresponds to the ASCII value in that
position, but even worse, the result is processor-defined for argument
values outside [0,127]. :)
- Brooks
More information about the Fortran
mailing list