2023-05-21 19:12:02 +00:00
|
|
|
From e2b9546b31d33f7d13ba675171025cf30ae2e21e Mon Sep 17 00:00:00 2001
|
2022-08-13 15:17:36 +00:00
|
|
|
From: Samuel Holland <samuel@sholland.org>
|
2023-05-15 08:15:31 +00:00
|
|
|
Date: Thu, 30 Jun 2022 16:44:51 +0000
|
2023-05-21 19:12:02 +00:00
|
|
|
Subject: [PATCH 29/32] libstdc++: do not throw exceptions for non-C locales on
|
2023-05-15 08:15:31 +00:00
|
|
|
musl targets
|
2022-08-13 15:17:36 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
libstdc++-v3/config/locale/generic/c_locale.cc | 3 ---
|
|
|
|
1 file changed, 3 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/libstdc++-v3/config/locale/generic/c_locale.cc b/libstdc++-v3/config/locale/generic/c_locale.cc
|
2023-05-15 08:15:31 +00:00
|
|
|
index 8849d78fdfa..aff467f98fe 100644
|
2022-08-13 15:17:36 +00:00
|
|
|
--- a/libstdc++-v3/config/locale/generic/c_locale.cc
|
|
|
|
+++ b/libstdc++-v3/config/locale/generic/c_locale.cc
|
|
|
|
@@ -242,9 +242,6 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
|
|
|
|
// Currently, the generic model only supports the "C" locale.
|
|
|
|
// See http://gcc.gnu.org/ml/libstdc++/2003-02/msg00345.html
|
|
|
|
__cloc = 0;
|
|
|
|
- if (strcmp(__s, "C"))
|
|
|
|
- __throw_runtime_error(__N("locale::facet::_S_create_c_locale "
|
|
|
|
- "name not valid"));
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
2023-05-15 08:15:31 +00:00
|
|
|
--
|
|
|
|
2.40.1
|
|
|
|
|