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

--- Comment #7 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Andrew Pinski <[email protected]>:

https://gcc.gnu.org/g:7512f0bbbea33c20c9e691d081b1eb5050f6fd22

commit r17-920-g7512f0bbbea33c20c9e691d081b1eb5050f6fd22
Author: Jean-Christian CÎRSTEA <[email protected]>
Date:   Sun Mar 22 19:57:42 2026 +0200

    libcody: allow non-ASCII module names [PR120458]

    Before this commit, attempting to use non-ASCII characters in quoted
    words failed, even though the protocol allows the usage of such
    characters in quoted words. To fix this:

    1. Remove `c >= 0x7f` comparison when parsing a quoted word.
    2. Use `unsigned char` instead of `char` such that `c < 0x20` fails for
       non-ASCII characters.

            PR c++/120458

    libcody/ChangeLog:

            * buffer.cc (S2C): Allow non-ASCII chars in quoted words.
            * cody.hh: Use unsigned char for S2C().

    gcc/testsuite/ChangeLog:

            * g++.dg/README: Explain purpose of modules/ dir.
            * g++.dg/modules/pr120458-1_a.C: Define non-ASCII module with
            default mapper.
            * g++.dg/modules/pr120458-1_b.C: Import non-ASCII module with
            default mapper.
            * g++.dg/modules/pr120458-2_a.C: Define non-ASCII module with
            a file as mapper.
            * g++.dg/modules/pr120458-2_b.C: Import non-ASCII module with
            a file as mapper.
            * g++.dg/modules/pr120458-2.map: Define mapping for pr120458-2
            test case.

    Signed-off-by: Jean-Christian CÎRSTEA <[email protected]>
  • [Bug c++/120458] module-name do... cvs-commit at gcc dot gnu.org via Gcc-bugs

Reply via email to