https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124543

--- Comment #20 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jerry DeLisle <[email protected]>:

https://gcc.gnu.org/g:3e2c1324fadb1a9e422e83187083d231bbe8dec2

commit r16-8514-g3e2c1324fadb1a9e422e83187083d231bbe8dec2
Author: Jerry DeLisle <[email protected]>
Date:   Mon Apr 6 17:55:21 2026 -0700

    fortran: Fix encoding value when file/unit opened without specifying.

    When a file or unit is connected as a formatted I/O and the OPEN
    statement does not set the ENCODING it is set to DEFAULT.

            PR libfortran/124543

    libgfortran/ChangeLog:

            * io/inquire.c (inquire_via_unit): Change the returned
            encoding value to 'DEFAULT' when not specified in the OPEN
            statement.

    gcc/testsuite/ChangeLog:

            * gfortran.dg/pr124543.f90: Add the dg-options "-O0" to
            reduce testing time. Adjust test for the change above.

Reply via email to