summaryrefslogtreecommitdiffstats
path: root/libc-top-half/musl/src/locale/bind_textdomain_codeset.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc-top-half/musl/src/locale/bind_textdomain_codeset.c')
-rw-r--r--libc-top-half/musl/src/locale/bind_textdomain_codeset.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/libc-top-half/musl/src/locale/bind_textdomain_codeset.c b/libc-top-half/musl/src/locale/bind_textdomain_codeset.c
new file mode 100644
index 0000000..5ebfd5e
--- /dev/null
+++ b/libc-top-half/musl/src/locale/bind_textdomain_codeset.c
@@ -0,0 +1,11 @@
+#include <libintl.h>
+#include <string.h>
+#include <strings.h>
+#include <errno.h>
+
+char *bind_textdomain_codeset(const char *domainname, const char *codeset)
+{
+ if (codeset && strcasecmp(codeset, "UTF-8"))
+ errno = EINVAL;
+ return NULL;
+}