From d09b437deebac78578edb9904a7f9981487e6cbb Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Mon, 12 Nov 2018 05:23:51 +0000 Subject: system/gcc: fix locale in libstdc++ (thanks @smaeul) --- system/gcc/gcc-5.4.0-locale.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 system/gcc/gcc-5.4.0-locale.patch (limited to 'system/gcc/gcc-5.4.0-locale.patch') diff --git a/system/gcc/gcc-5.4.0-locale.patch b/system/gcc/gcc-5.4.0-locale.patch new file mode 100644 index 000000000..dca3ba9e8 --- /dev/null +++ b/system/gcc/gcc-5.4.0-locale.patch @@ -0,0 +1,13 @@ +diff --git gcc-5.4.0/libstdc++-v3/config/locale/generic/c_locale.cc.orig gcc-5.4.0/libstdc++-v3/config/locale/generic/c_locale.cc +--- gcc-5.4.0/libstdc++-v3/config/locale/generic/c_locale.cc.orig ++++ gcc-5.4.0/libstdc++-v3/config/locale/generic/c_locale.cc +@@ -213,9 +213,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 -- cgit v1.2.3-60-g2f50