2012-11-4 Liviu Nicoara <lnicoara@apache.org>
Fixes to collate facet and test enhancements:
* src/collate.cpp (__rw_strnxfrm): corrected processing of
embedded NULs. (__rw_wcsnxfrm) same (duplicated code).
(collate_byname<wchar_t>::do_compare): fixed string comparison
return values, re-implemented the wcscoll-based comparison.
* tests/localization/22.locale.collate.cpp: implemented a simpler
collation test for strings with embedded NULs.
git-svn-id: https://svn.apache.org/repos/asf/stdcxx/branches/4.2.x@1405545 13f79535-47bb-0310-9956-ffa450edef68
2 files changed