about summary refs log tree commit diff
path: root/src/locale/nl_langinfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/locale/nl_langinfo.c')
-rw-r--r--src/locale/nl_langinfo.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/locale/nl_langinfo.c b/src/locale/nl_langinfo.c
new file mode 100644
index 00000000..bb3a2c46
--- /dev/null
+++ b/src/locale/nl_langinfo.c
@@ -0,0 +1,13 @@
+#include <langinfo.h>
+
+// FIXME: other items
+
+char *nl_langinfo(nl_item item)
+{
+	switch (item) {
+	case CODESET:
+		return "UTF-8";
+	default:
+		return "";
+	}
+}