This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch, libgfortran] Wrong result for UTF-8/UCS-4 list-directed and namelist read and nml write
- From: Jerry DeLisle <jvdelisle at charter dot net>
- To: gfortran <fortran at gcc dot gnu dot org>
- Cc: gcc patches <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 13 Apr 2014 10:48:35 -0700
- Subject: Re: [patch, libgfortran] Wrong result for UTF-8/UCS-4 list-directed and namelist read and nml write
- Authentication-results: sourceware.org; auth=none
- References: <5337A474 dot 8090004 at charter dot net>
Ping! This is PR52539
On 03/29/2014 09:58 PM, Jerry DeLisle wrote:
> Hi all,
>
> The attached patch fixes namelist read/write and list directed read/write to
> support UTF-8.
>
> I have attached a preliminary test case to use to experiment with this. I will
> need to set it up for the testsuite still.
>
> Regression tested on x86-64-linux-gnu.
>
> OK for trunk or wait?
>
> Regards,
>
> Jerry
>
> 2014-03-29 Jerry DeLisle <jvdelisle@gcc.gnu>
>
> PR libfortran/52539
> * io/list_read.c: Add uchar typedef. (push_char4): New function
> to save kind=4 character. (next_char_utf8): New function to read
> a single UTF-8 encoded character value. (read_chracter): Update
> to use the new functions for reading UTF-8 strings.
> (list_formatted_read_scalar): Update to handle list directed
> reads of UTF-8 strings. (nml_read_obj): Likewise update for
> UTF-8 strings in namelists.
> * io/write.c (nml_write_obj): Add kind=4 character support for
> namelist writes.
>