]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Only append "@euro" to locale names for Glibc testing
authorJonathan Wakely <jwakely@redhat.com>
Wed, 31 Jul 2024 11:03:32 +0000 (12:03 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 31 Jul 2024 16:07:11 +0000 (17:07 +0100)
The testsuite automatically appends "@euro" to "xx.ISO8859-15" locale
names on all targets except FreeBSD, DragonflyBSD, and NetBSD. It should
only be for Glibc, not all non-BSD targets.

libstdc++-v3/ChangeLog:

* testsuite/lib/libstdc++.exp (check_v3_target_namedlocale):
Only append "@euro" to ".ISO8859-15" locales for Glibc.

libstdc++-v3/testsuite/lib/libstdc++.exp

index 18331c80bc27bfd453c66f712e03b677e37f460d..2510c7f4cbb9a74c20a506933d5c08f29ecf02fb 100644 (file)
@@ -1032,7 +1032,7 @@ proc check_v3_target_namedlocale { args } {
        puts $f "    strcpy(result, name);"
        puts $f "#if defined __FreeBSD__ || defined __DragonFly__ || defined __NetBSD__"
        puts $f "    /* fall-through */"
-       puts $f "#else"
+       puts $f "#elif defined __GLIBC__"
        puts $f "    if (strstr(result, \"ISO8859-15\")) {"
        puts $f "        strcat(result, \"@euro\");"
        puts $f "    }"