From 57eb37160c64e4b955e31a98ae05f70390c40717 Mon Sep 17 00:00:00 2001 From: Brandon Scott Date: Sat, 16 Nov 2019 02:26:18 -0600 Subject: LibC: Added additional fields to lconv struct Added some additional fields to the lconv structure that were missing and set all their defaults. --- Libraries/LibC/locale.cpp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'Libraries/LibC/locale.cpp') diff --git a/Libraries/LibC/locale.cpp b/Libraries/LibC/locale.cpp index 9d6f4d65a8..d015cf7a86 100644 --- a/Libraries/LibC/locale.cpp +++ b/Libraries/LibC/locale.cpp @@ -8,10 +8,34 @@ static char default_decimal_point[] = "."; static char default_thousands_sep[] = ","; static char default_grouping[] = "\x03\x03"; +static char default_empty_string[] = ""; +static char default_empty_value = 127; + static struct lconv default_locale = { default_decimal_point, default_thousands_sep, default_grouping, + default_empty_string, + default_empty_string, + default_empty_string, + default_empty_string, + default_empty_string, + default_empty_string, + default_empty_string, + default_empty_value, + default_empty_value, + default_empty_value, + default_empty_value, + default_empty_value, + default_empty_value, + default_empty_value, + default_empty_value, + default_empty_value, + default_empty_value, + default_empty_value, + default_empty_value, + default_empty_value, + default_empty_value }; char* setlocale(int category, const char* locale) -- cgit v1.2.3