2022-11-09 10:38:14 +00:00
|
|
|
#include <limits.h>
|
2022-10-31 11:29:53 +00:00
|
|
|
#include <locale.h>
|
|
|
|
#include <luna.h>
|
|
|
|
|
|
|
|
static char default_locale[] = "C";
|
|
|
|
|
2022-11-09 10:38:14 +00:00
|
|
|
static char dot[] = ".";
|
|
|
|
static char empty[] = "";
|
|
|
|
|
|
|
|
static struct lconv default_lconv = {dot, empty, empty, empty, empty, empty,
|
|
|
|
empty, empty, empty, empty, CHAR_MAX, CHAR_MAX,
|
|
|
|
CHAR_MAX, CHAR_MAX, CHAR_MAX, CHAR_MAX, CHAR_MAX, CHAR_MAX};
|
|
|
|
|
2022-10-31 11:29:53 +00:00
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
char* setlocale(int, const char*)
|
|
|
|
{
|
|
|
|
return default_locale;
|
|
|
|
}
|
2022-11-09 10:38:14 +00:00
|
|
|
|
|
|
|
struct lconv* localeconv(void)
|
|
|
|
{
|
|
|
|
return &default_lconv;
|
|
|
|
}
|
2022-10-31 11:29:53 +00:00
|
|
|
}
|