From 1d02c7b6f171884c3ec971ff5e56a9d19fa29a24 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 22 Apr 2019 13:00:59 +0200 Subject: LibC: Return a default locale from localeconv(). (For GCC 8.3.0) --- LibC/locale.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/LibC/locale.cpp b/LibC/locale.cpp index a17c38f801..62bd414b7c 100644 --- a/LibC/locale.cpp +++ b/LibC/locale.cpp @@ -4,6 +4,12 @@ extern "C" { +static struct lconv default_locale = { + ".", + ",", + "\x03\x03", +}; + char* setlocale(int category, const char* locale) { dbgprintf("FIXME(LibC): setlocale(%d, %s)\n", category, locale); @@ -12,7 +18,7 @@ char* setlocale(int category, const char* locale) struct lconv* localeconv() { - assert(false); + return &default_locale; } } -- cgit v1.2.3