+2010-01-23 Corinna Vinschen <corinna@vinschen.de>
+
+ * nlsfuncs.cc (wcsxfrm): Call LCMapStringW with LCMAP_BYTEREV flag to
+ allow correct comparison using wcscmp.
+
2010-01-22 Corinna Vinschen <corinna@vinschen.de>
* posix.sgml (strfmon): Move to implemented SUSv4 API.
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.