1 --- wcsncasecmp.c.orig 2009-12-16 12:51:30.000000000 -0800
2 +++ wcsncasecmp.c 2009-12-16 13:02:55.000000000 -0800
5 __FBSDID("$FreeBSD: src/lib/libc/string/wcsncasecmp.c,v 1.1 2009/02/28 06:00:58 das Exp $");
7 +#include "xlocale_private.h"
13 -wcsncasecmp(const wchar_t *s1, const wchar_t *s2, size_t n)
14 +wcsncasecmp_l(const wchar_t *s1, const wchar_t *s2, size_t n, locale_t loc)
20 for (; *s1; s1++, s2++) {
23 + c1 = towlower_l(*s1, loc);
24 + c2 = towlower_l(*s2, loc);
26 return ((int)c1 - c2);
28 @@ -47,3 +49,9 @@ wcsncasecmp(const wchar_t *s1, const wch
34 +wcsncasecmp(const wchar_t *s1, const wchar_t *s2, size_t n) {
35 + return wcsncasecmp_l(s1, s2, n, __current_locale());