blob: 9d6f4d65a8157280726733b2436fc89a3cd82f82 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#include <assert.h>
#include <locale.h>
#include <stdio.h>
extern "C" {
static char default_decimal_point[] = ".";
static char default_thousands_sep[] = ",";
static char default_grouping[] = "\x03\x03";
static struct lconv default_locale = {
default_decimal_point,
default_thousands_sep,
default_grouping,
};
char* setlocale(int category, const char* locale)
{
dbgprintf("FIXME(LibC): setlocale(%d, %s)\n", category, locale);
return nullptr;
}
struct lconv* localeconv()
{
return &default_locale;
}
}
|