This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: string_0xfe_0xff_1.f90


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]