[patch, libfortran] UTF-8 Support, part 1.1

Tobias Burnus burnus@net-b.de
Tue Aug 12 13:36:00 GMT 2008


Jerry DeLisle wrote:
> Regression tested on x86-64-linux-gnu.
> OK to commit?
Looks OK. Thanks for the patch.

Tobias

> 2008-08-10  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
>
>     PR fortran/35863
>     * io.c (gfc_match_open): Enable UTF-8 in checks.
>     * simplify.c (gfc_simplify_selected_char_kind): Enable iso_10646.
>
> 2008-08-10  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
>
>     PR libfortran/35863
>     * intrinsics/selected_char_kind.c: Enable iso_10646.
>     * io/read.c (typedef uchar): New type.
>     (read_utf8): New function to read a single UTF-8 encoded character.
>     (read_utf8_char1): New function to read UTF-8 into a KIND=1 string.
>     (read_default_char1): New functio to read default into KIND=1 string.
>     (read_utf8_char4): New function to read UTF-8 into a KIND=4 string.
>     (read_default_char4): New function to read UTF-8 into a KIND=4 
> string.
>     (read_a): Modify to use the new functions.
>     (read_a_char4): Modify to use the new functions.
>     * io/write.c (error.h): Add include. (typedef uchar): New type.
>     (write_default_char4): New function to default write KIND=4 string.
>     (write_utf8_char4): New function to UTF-8 write KIND=4 string.
>     (write_a_char4): Modify to use new functions.
>     (write_character): Modify to use new functions. 



More information about the Gcc-patches mailing list