summaryrefslogtreecommitdiff
path: root/Libraries/LibC/locale.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries/LibC/locale.cpp')
-rw-r--r--Libraries/LibC/locale.cpp27
1 files changed, 27 insertions, 0 deletions
diff --git a/Libraries/LibC/locale.cpp b/Libraries/LibC/locale.cpp
new file mode 100644
index 0000000000..9d6f4d65a8
--- /dev/null
+++ b/Libraries/LibC/locale.cpp
@@ -0,0 +1,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;
+}
+}