From 56ae96558ba568b22318230cffb8f0a88a6d05e5 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 22 Jun 2019 14:32:59 +0200 Subject: [PATCH] LibC: Fix locale.cpp warnings. --- LibC/locale.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/LibC/locale.cpp b/LibC/locale.cpp index a85af30784..9d6f4d65a8 100644 --- a/LibC/locale.cpp +++ b/LibC/locale.cpp @@ -4,10 +4,14 @@ extern "C" { +static char default_decimal_point[] = "."; +static char default_thousands_sep[] = ","; +static char default_grouping[] = "\x03\x03"; + static struct lconv default_locale = { - ".", - ",", - "\x03\x03", + default_decimal_point, + default_thousands_sep, + default_grouping, }; char* setlocale(int category, const char* locale)