From 1a620acc175c17744f6214fd1514893e6b497e1d Mon Sep 17 00:00:00 2001 From: Emery Hemingway Date: Wed, 10 Jun 2020 20:15:44 +0530 Subject: [PATCH] libc: add newlocale and freelocale dummies Fix #3777 --- repos/libports/src/lib/libc/nolocale.cc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/repos/libports/src/lib/libc/nolocale.cc b/repos/libports/src/lib/libc/nolocale.cc index 9d43c35acb..84f11f1f0d 100644 --- a/repos/libports/src/lib/libc/nolocale.cc +++ b/repos/libports/src/lib/libc/nolocale.cc @@ -20,6 +20,7 @@ extern "C" { #include #include #include +#include extern struct xlocale_component __xlocale_global_collate; @@ -64,4 +65,15 @@ char *setlocale(int, const char *) return (char*)"C"; } + +locale_t newlocale(int, const char *locale, locale_t) +{ + Genode::warning("cannot set \"", locale, "\" locale, not implemented"); + errno = ENOENT; + return NULL; +} + + +void freelocale(locale_t) { } + }