ladybird/Libraries/LibC/locale.cpp

28 lines
530 B
C++
Raw Normal View History

#include <assert.h>
2019-06-07 11:49:03 +02:00
#include <locale.h>
#include <stdio.h>
extern "C" {
2019-06-22 14:32:59 +02:00
static char default_decimal_point[] = ".";
static char default_thousands_sep[] = ",";
static char default_grouping[] = "\x03\x03";
static struct lconv default_locale = {
2019-06-22 14:32:59 +02:00
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;
}
}