diff options
author | Rich Felker <dalias@aerifal.cx> | 2014-07-02 21:46:41 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2014-07-02 21:46:41 -0400 |
commit | 4c48501ee2a022a0dd207a2db4d346a00f9927a1 (patch) | |
tree | 59167ab2975dfdf087be1033c72cd591f4c6e1f0 /src/locale/strcoll.c | |
parent | 7424ac58b1f47adb03de55de5998c530aee91551 (diff) | |
download | musl-4c48501ee2a022a0dd207a2db4d346a00f9927a1.tar.gz musl-4c48501ee2a022a0dd207a2db4d346a00f9927a1.tar.xz musl-4c48501ee2a022a0dd207a2db4d346a00f9927a1.zip |
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.
Diffstat (limited to 'src/locale/strcoll.c')
-rw-r--r-- | src/locale/strcoll.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 <string.h> #include <locale.h> +#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); |