llvm-project/libcxx/test
Eric Fiselier 0d542d350d [libc++] Fix support for multibyte thousands_sep and decimal_point in moneypunct_byname and numpunct_byname.
Summary:
The underlying C locales provide the `thousands_sep` and `decimal_point` as strings, possible with more than one character. We currently don't handle this case even for `wchar_t`.

This patch properly converts the mbs -> wide character for `moneypunct_byname<wchar_t>`. For the `moneypunct_byname<char>` case we attempt to narrow the WC and if that fails we also attempt to translate it to some reasonable value. For example we translate U00A0 (non-breaking space) into U0020 (regular space). If none of these conversions succeed then we simply allow the base class to provide a fallback value.


Reviewers: mclow.lists, EricWF

Subscribers: vangyzen, george.burgess.iv, cfe-commits

Differential Revision: https://reviews.llvm.org/D24218

llvm-svn: 289347
2016-12-11 00:20:59 +00:00
..
libcxx Put C++ ABI headers in a special build directory instead of the top level. 2016-12-09 09:31:01 +00:00
std [libc++] Fix support for multibyte thousands_sep and decimal_point in moneypunct_byname and numpunct_byname. 2016-12-11 00:20:59 +00:00
support [libcxx] [test] Add LIBCPP_ASSERT_NOEXCEPT/LIBCPP_ASSERT_NOT_NOEXCEPT, remove an unused variable. 2016-12-09 19:53:08 +00:00
CMakeLists.txt Fix linker script generation for in-tree builds 2016-10-09 21:34:03 +00:00
lit.cfg Add mork workarounds for running the test suite against libstdc++ 2016-10-12 00:28:14 +00:00
lit.site.cfg.in Fix GCC libc++abi build 2016-11-13 22:27:00 +00:00
nothing_to_do.pass.cpp Test commit: Reverting whitespace changes 2014-07-17 05:10:03 +00:00
testit Add 'nostdinc++' to the flags used by testit. Makes the tests run better on Mac OS X with the new depr.c headers change 2015-11-01 21:14:22 +00:00