From 4c48501ee2a022a0dd207a2db4d346a00f9927a1 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Wed, 2 Jul 2014 21:46:41 -0400 Subject: properly pass current locale to *_l functions when used internally this change is presently non-functional since the callees do not yet use their locale argument for anything. --- src/locale/strcoll.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/locale/strcoll.c') diff --git a/src/locale/strcoll.c b/src/locale/strcoll.c index 39ea1123..84f199ff 100644 --- a/src/locale/strcoll.c +++ b/src/locale/strcoll.c @@ -1,5 +1,6 @@ #include #include +#include "locale_impl.h" #include "libc.h" int __strcoll_l(const char *l, const char *r, locale_t loc) @@ -9,7 +10,7 @@ int __strcoll_l(const char *l, const char *r, locale_t loc) int strcoll(const char *l, const char *r) { - return __strcoll_l(l, r, 0); + return __strcoll_l(l, r, CURRENT_LOCALE); } weak_alias(__strcoll_l, strcoll_l); -- cgit v1.2.1