summaryrefslogtreecommitdiffstats
path: root/lib/libc/locale/wcscoll_l.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/locale/wcscoll_l.c')
-rw-r--r--lib/libc/locale/wcscoll_l.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/libc/locale/wcscoll_l.c b/lib/libc/locale/wcscoll_l.c
new file mode 100644
index 00000000000..7bfd1563109
--- /dev/null
+++ b/lib/libc/locale/wcscoll_l.c
@@ -0,0 +1,17 @@
+/* $OpenBSD: wcscoll_l.c,v 1.1 2017/09/05 03:16:13 schwarze Exp $ */
+/*
+ * Written in 2017 by Ingo Schwarze <schwarze@openbsd.org>.
+ * Released into the public domain.
+ */
+
+#include <wchar.h>
+
+/*
+ * Locale-dependent collation is intentionally unsupported.
+ */
+int
+wcscoll_l(const wchar_t *s1, const wchar_t *s2,
+ locale_t locale __attribute__((__unused__)))
+{
+ return wcscmp(s1, s2);
+}