summaryrefslogtreecommitdiffstats
path: root/lldb/unittests/Utility/VASprintfTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/unittests/Utility/VASprintfTest.cpp')
-rw-r--r--lldb/unittests/Utility/VASprintfTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/unittests/Utility/VASprintfTest.cpp b/lldb/unittests/Utility/VASprintfTest.cpp
index 73a43dd300b..0b440942eb5 100644
--- a/lldb/unittests/Utility/VASprintfTest.cpp
+++ b/lldb/unittests/Utility/VASprintfTest.cpp
@@ -49,11 +49,11 @@ TEST(VASprintfTest, EncodingError) {
setlocale(LC_ALL, ".932");
wchar_t Invalid[2];
- Invalid[0] = 129;
+ Invalid[0] = 0x100;
Invalid[1] = 0;
llvm::SmallString<32> Buffer;
EXPECT_FALSE(Sprintf(Buffer, "%ls", Invalid));
EXPECT_EQ("<Encoding error>", Buffer);
- setlocale(LC_CTYPE, Current.c_str());
+ setlocale(LC_ALL, Current.c_str());
}
OpenPOWER on IntegriCloud