summaryrefslogtreecommitdiff
path: root/src/locale/newlocale.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/locale/newlocale.c')
-rw-r--r--src/locale/newlocale.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/locale/newlocale.c b/src/locale/newlocale.c
new file mode 100644
index 00000000..986e796f
--- /dev/null
+++ b/src/locale/newlocale.c
@@ -0,0 +1,11 @@
+#include <stdlib.h>
+#include <string.h>
+#include "locale_impl.h"
+
+locale_t newlocale(int mask, const char *name, locale_t base)
+{
+ if (*name && strcmp(name, "C") && strcmp(name, "POSIX"))
+ return 0;
+ if (!base) base = calloc(1, sizeof *base);
+ return base;
+}