[Bug fortran/45179] Support UTF-8 (and other encodings) in the source file (.f90) for CHARACTER(kind=4)
epagone at email dot it
gcc-bugzilla@gcc.gnu.org
Thu Nov 22 12:20:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45179
epagone <epagone at email dot it> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |epagone at email dot it
--- Comment #6 from epagone <epagone at email dot it> ---
Still present in gfortran version 8.1.0.
I have developed a simple workaround (although clunky) to overcome the wrong
output of len() and len_trim() using kind=1 strings. I simply count how many
characters are non-ASCII (comparing with achar() between 1 and 127) and then
correct the output accordingly. In my (limited) tests it works, but it might
have shortcomings.
More information about the Gcc-bugs
mailing list