Deleted Added
full compact
4a5,9
> * Copyright (c) 2011 The FreeBSD Foundation
> * All rights reserved.
> * Portions of this software were developed by David Chisnall
> * under sponsorship from the FreeBSD Foundation.
> *
28c33
< __FBSDID("$FreeBSD: head/lib/libc/string/wcscoll.c 127998 2004-04-07 09:47:56Z tjr $");
---
> __FBSDID("$FreeBSD: head/lib/libc/string/wcscoll.c 227753 2011-11-20 14:45:42Z theraven $");
44c49
< wcscoll(const wchar_t *ws1, const wchar_t *ws2)
---
> wcscoll_l(const wchar_t *ws1, const wchar_t *ws2, locale_t locale)
47a53,55
> FIX_LOCALE(locale);
> struct xlocale_collate *table =
> (struct xlocale_collate*)locale->components[XLC_COLLATE];
49c57
< if (__collate_load_error || MB_CUR_MAX > 1)
---
> if (table->__collate_load_error || MB_CUR_MAX > 1)
70c78
< diff = strcoll(mbs1, mbs2);
---
> diff = strcoll_l(mbs1, mbs2, locale);
78a87,92
> int
> wcscoll(const wchar_t *ws1, const wchar_t *ws2)
> {
> return wcscoll_l(ws1, ws2, __get_locale());
> }
>