diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2024-07-31 12:03:32 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2024-07-31 17:07:11 +0100 |
commit | 5dd1f0d69f51dc6b290977503dcfb7734948e841 (patch) | |
tree | 39c3a5d05af11ca3a8bf2801b829f68fa4a4874d | |
parent | 96f789d25f99e889fab8cba2c20cd6f80a9b4a0a (diff) | |
download | gcc-5dd1f0d69f51dc6b290977503dcfb7734948e841.zip gcc-5dd1f0d69f51dc6b290977503dcfb7734948e841.tar.gz gcc-5dd1f0d69f51dc6b290977503dcfb7734948e841.tar.bz2 |
libstdc++: Only append "@euro" to locale names for Glibc testing
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.
-rw-r--r-- | libstdc++-v3/testsuite/lib/libstdc++.exp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/testsuite/lib/libstdc++.exp b/libstdc++-v3/testsuite/lib/libstdc++.exp index 18331c8..2510c7f 100644 --- a/libstdc++-v3/testsuite/lib/libstdc++.exp +++ b/libstdc++-v3/testsuite/lib/libstdc++.exp @@ -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 " }" |