summaryrefslogtreecommitdiff
path: root/system/gcc/gcc-5.4.0-locale.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-11-12 05:23:51 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-11-12 05:23:51 +0000
commitd09b437deebac78578edb9904a7f9981487e6cbb (patch)
treeb6055cb2865261206e87cea7950ab3a5137d0798 /system/gcc/gcc-5.4.0-locale.patch
parentd04fd494b968bcc786ea013b70e7423b38bfe179 (diff)
downloadpackages-d09b437deebac78578edb9904a7f9981487e6cbb.tar.gz
packages-d09b437deebac78578edb9904a7f9981487e6cbb.tar.bz2
packages-d09b437deebac78578edb9904a7f9981487e6cbb.tar.xz
packages-d09b437deebac78578edb9904a7f9981487e6cbb.zip
system/gcc: fix locale in libstdc++ (thanks @smaeul)
Diffstat (limited to 'system/gcc/gcc-5.4.0-locale.patch')
-rw-r--r--system/gcc/gcc-5.4.0-locale.patch13
1 files changed, 13 insertions, 0 deletions
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