1 --- wcscasecmp.c.orig 2009-12-16 12:51:30.000000000 -0800
2 +++ wcscasecmp.c 2009-12-16 12:59:33.000000000 -0800
5 __FBSDID("$FreeBSD: src/lib/libc/string/wcscasecmp.c,v 1.1 2009/02/28 06:00:58 das Exp $");
7 +#include "xlocale_private.h"
13 -wcscasecmp(const wchar_t *s1, const wchar_t *s2)
14 +wcscasecmp_l(const wchar_t *s1, const wchar_t *s2, locale_t loc)
18 for (; *s1; s1++, s2++) {
21 + c1 = towlower_l(*s1, loc);
22 + c2 = towlower_l(*s2, loc);
24 return ((int)c1 - c2);
30 +wcscasecmp(const wchar_t *s1, const wchar_t *s2) {
31 + return wcscasecmp_l(s1, s2, __current_locale());