summaryrefslogtreecommitdiff
path: root/cpp/test/IceUtil/unicode/Client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/test/IceUtil/unicode/Client.cpp')
-rw-r--r--cpp/test/IceUtil/unicode/Client.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/cpp/test/IceUtil/unicode/Client.cpp b/cpp/test/IceUtil/unicode/Client.cpp
index 76d74fbe4b1..79e515e99ed 100644
--- a/cpp/test/IceUtil/unicode/Client.cpp
+++ b/cpp/test/IceUtil/unicode/Client.cpp
@@ -308,9 +308,12 @@ main(int argc, char* argv[])
// Note: for an unknown reason, the conversion works without
// the extra letter (x below) when using codecvt_utf8_utf16.
-
wstring badWstring[] = {
+# ifdef ICE_HAS_CODECVT_UTF8
wstring(1, wchar_t(0xD800)) + L"x",
+# else
+ wstring(1, wchar_t(0xD800)),
+# endif
wstring(2, wchar_t(0xDB7F)),
L""
};