Hi Jerry,

the patch looks good to me.

One small nit: in write.c after the period of the first sentence should be two
space, when I am not mistaken.

Thanks for the patch,
        Andre

On Thu, 23 Jan 2025 13:18:55 -0800
Jerry D <jvdelis...@gmail.com> wrote:

> Hello all,
>
> The attached patch is straight forward. I spent more time on getting the
> test case ready. Thanks Steve for finding this and narrowing down where
> the problem was.
>
> Regression tested on x86_64-linux-gnu.
>
> OK for trunk? What about a backport to 14?
>
> Regards,
>
> Jerry
>
> Author: Jerry DeLisle <jvdeli...@gcc.gnu.org>
> Date:   Thu Jan 23 12:58:14 2025 -0800
>
>      Fortran: Fix UTF-8 output with A edit descriptor.
>
>              This adjusts the source len for the case where the user has
>              specified a field width with the A descriptor.
>
>              PR libfortran/118571
>
>      libgfortran/ChangeLog:
>
>              * io/write.c (write_utf8_char4): Adjust the src_len to the
>              format width w_len when greater than zero.
>
>      gcc/testsuite/ChangeLog:
>
>              * gfortran.dg/utf8_3.f03: New test.


--
Andre Vehreschild * Email: vehre ad gmx dot de

Reply via email to