summaryrefslogtreecommitdiff
path: root/src/locale/strxfrm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/locale/strxfrm.c')
-rw-r--r--src/locale/strxfrm.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/locale/strxfrm.c b/src/locale/strxfrm.c
index d40be9e1..0ca9b071 100644
--- a/src/locale/strxfrm.c
+++ b/src/locale/strxfrm.c
@@ -1,9 +1,18 @@
#include <string.h>
+#include <locale.h>
+#include "libc.h"
/* collate only by code points */
-size_t strxfrm(char *restrict dest, const char *restrict src, size_t n)
+size_t __strxfrm_l(char *restrict dest, const char *restrict src, size_t n, locale_t loc)
{
size_t l = strlen(src);
if (n > l) strcpy(dest, src);
return l;
}
+
+size_t strxfrm(char *restrict dest, const char *restrict src, size_t n)
+{
+ return __strxfrm_l(dest, src, n, LC_GLOBAL_LOCALE);
+}
+
+weak_alias(__strxfrm_l, strxfrm_l);