summaryrefslogtreecommitdiff
path: root/cpp/test/IceGrid/deployer/Server.cpp
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2014-05-02 19:56:38 +0200
committerJose <jose@zeroc.com>2014-05-02 19:56:38 +0200
commit1161c5817059464ab511632c0ce5d14593ced1a3 (patch)
tree51bbcdf2a4ea43c430312157350bb4271bc3f40d /cpp/test/IceGrid/deployer/Server.cpp
parentUpdate .gitignore files (diff)
downloadice-1161c5817059464ab511632c0ce5d14593ced1a3.tar.bz2
ice-1161c5817059464ab511632c0ce5d14593ced1a3.tar.xz
ice-1161c5817059464ab511632c0ce5d14593ced1a3.zip
ICE-4851 - Use wstrings for input and output data that contain non-ASCII characters?
Diffstat (limited to 'cpp/test/IceGrid/deployer/Server.cpp')
-rw-r--r--cpp/test/IceGrid/deployer/Server.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/test/IceGrid/deployer/Server.cpp b/cpp/test/IceGrid/deployer/Server.cpp
index 7673e082a6e..3d576116fa4 100644
--- a/cpp/test/IceGrid/deployer/Server.cpp
+++ b/cpp/test/IceGrid/deployer/Server.cpp
@@ -80,13 +80,13 @@ main(int argc, char* argv[])
#if defined(_WIN32)
wchar_t* value2 = _wgetenv(L"MY_ENV_UNICODE_VARIABLE");
- test(value2 != 0 && wstring(value2) == IceUtil::stringToWstring(unicodeVar));
+ test(value2 != 0 && wstring(value2) == IceUtil::nativeToWnative(0, 0, unicodeVar));
- wchar_t* value3 = _wgetenv(IceUtil::stringToWstring(varname1).c_str());
+ wchar_t* value3 = _wgetenv(IceUtil::nativeToWnative(0, 0, varname1).c_str());
test(value3 != 0 && wstring(value3) == L"2");
// Environment variables are case insensitive on Windows.
- wchar_t* value4 = _wgetenv(IceUtil::stringToWstring(varname1).c_str());
+ wchar_t* value4 = _wgetenv(IceUtil::nativeToWnative(0, 0, varname1).c_str());
test(value4 != 0 && wstring(value4) == L"2");
char* value5 = getenv("MY_WINDOWS_COMPOSED_VARIABLE");