Notice the added final '\0' in the C case; I don't know if it's bad to
have it there, but I don't see a way to not output it and still have
the correct output for Fortran (whose strings are not NUL-terminated).

I think the best thing to do is to have a langhook then. I'm actually not sure that you want all those \0's in the Fortran front-end since the kind can be recovered from the {lb:1 sz:4} that is appended to the string. Endianness issues may also appear. Maybe you should call iconv in the langhook to get back to UTF-8, and print that representation instead.

Paolo

Reply via email to