mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:17:35 +00:00
LibC: Return a default locale from localeconv(). (For GCC 8.3.0)
This commit is contained in:
parent
9f122bff5a
commit
1d02c7b6f1
1 changed files with 7 additions and 1 deletions
|
@ -4,6 +4,12 @@
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
||||||
|
static struct lconv default_locale = {
|
||||||
|
".",
|
||||||
|
",",
|
||||||
|
"\x03\x03",
|
||||||
|
};
|
||||||
|
|
||||||
char* setlocale(int category, const char* locale)
|
char* setlocale(int category, const char* locale)
|
||||||
{
|
{
|
||||||
dbgprintf("FIXME(LibC): setlocale(%d, %s)\n", category, locale);
|
dbgprintf("FIXME(LibC): setlocale(%d, %s)\n", category, locale);
|
||||||
|
@ -12,7 +18,7 @@ char* setlocale(int category, const char* locale)
|
||||||
|
|
||||||
struct lconv* localeconv()
|
struct lconv* localeconv()
|
||||||
{
|
{
|
||||||
assert(false);
|
return &default_locale;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue