summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/input.output
diff options
context:
space:
mode:
authorBilly Robert O'Neal III <bion@microsoft.com>2018-08-08 00:47:29 +0000
committerBilly Robert O'Neal III <bion@microsoft.com>2018-08-08 00:47:29 +0000
commitf2c9a2fee6669cbd7712427a15b5db8a01099c51 (patch)
treea91e0dd51a9a989131e3fe58cc59de332f409e59 /libcxx/test/std/input.output
parente94d16e223544f3e495f2f67cb354698f34aba3b (diff)
downloadbcm5719-llvm-f2c9a2fee6669cbd7712427a15b5db8a01099c51.tar.gz
bcm5719-llvm-f2c9a2fee6669cbd7712427a15b5db8a01099c51.zip
[libcxx] [test] Remove nonportable locale assumption in basic.ios.members/narrow.pass.cpp
I'm not sure if libcxx is asserting UTF-8 here; but on Windows the full char value is always passed through in its entirety, since the default codepage is something like Windows-1252. The replacement character is only used for non-chars there; and that should be a more portable test everywhere. (Still pending review at https://reviews.llvm.org/D47395 which has been open since may; will ask for forgiveness rather than permission :) ) llvm-svn: 339213
Diffstat (limited to 'libcxx/test/std/input.output')
-rw-r--r--libcxx/test/std/input.output/iostreams.base/ios/basic.ios.members/narrow.pass.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/libcxx/test/std/input.output/iostreams.base/ios/basic.ios.members/narrow.pass.cpp b/libcxx/test/std/input.output/iostreams.base/ios/basic.ios.members/narrow.pass.cpp
index bf865e68149..3cdb434c4a8 100644
--- a/libcxx/test/std/input.output/iostreams.base/ios/basic.ios.members/narrow.pass.cpp
+++ b/libcxx/test/std/input.output/iostreams.base/ios/basic.ios.members/narrow.pass.cpp
@@ -18,7 +18,7 @@
int main()
{
- const std::ios ios(0);
- assert(ios.narrow('c', '*') == 'c');
- assert(ios.narrow('\xFE', '*') == '*');
+ const std::wios ios(0);
+ assert(ios.narrow(L'c', '*') == 'c');
+ assert(ios.narrow(L'\u203C', '*') == '*');
}
OpenPOWER on IntegriCloud