From e020bfa85b105944c2a3d2053a5f174191e960e4 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Sat, 23 Jan 2010 10:11:43 +0000 Subject: * nlsfuncs.cc (wcsxfrm): Call LCMapStringW with LCMAP_BYTEREV flag to allow correct comparison using wcscmp. --- winsup/cygwin/nlsfuncs.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'winsup/cygwin/nlsfuncs.cc') diff --git a/winsup/cygwin/nlsfuncs.cc b/winsup/cygwin/nlsfuncs.cc index 073aa1329..9467858c5 100644 --- a/winsup/cygwin/nlsfuncs.cc +++ b/winsup/cygwin/nlsfuncs.cc @@ -637,7 +637,7 @@ wcsxfrm (wchar_t *ws1, const wchar_t *ws2, size_t wsn) if (!collate_lcid) return wcslcpy (ws1, ws2, wsn); - ret = LCMapStringW (collate_lcid, LCMAP_SORTKEY, + ret = LCMapStringW (collate_lcid, LCMAP_SORTKEY | LCMAP_BYTEREV, ws2, -1, ws1, wsn * sizeof (wchar_t)); /* LCMapStringW returns byte count including the terminating NUL character, wcsxfrm is supposed to return length in wchar_t excluding the NUL. -- cgit v1.2.3