https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65909
--- Comment #6 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jonathan Wakely <r...@gcc.gnu.org>: https://gcc.gnu.org/g:3e2b83faeb6b14254641933525e63171e89d973f commit r16-537-g3e2b83faeb6b14254641933525e63171e89d973f Author: Jonathan Wakely <jwak...@redhat.com> Date: Thu May 8 09:57:28 2025 +0100 libstdc++: Make dg-require-namedlocale work for more targets [PR65909] As noted in the PR, some embedded targets do not support command-line arguments, which means that the dg-require-namedlocale check always fails. Use Sandra's suggestion of hardcoding the argument into the executable instead of passing it as a command-line argument. Realistically, those embedded targets probably don't support the named locales anyway, but at least now the tests will be UNSUPPORTED for the right reason. libstdc++-v3/ChangeLog: PR libstdc++/65909 * testsuite/lib/libstdc++.exp (check_v3_target_namedlocale): Hardcode the locale name instead of passing it to the executable. Do not hardcode buffer size for string. Reviewed-by: Tomasz KamiÅski <tkami...@redhat.com>