summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/testConsoleBufChild.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/kwsys/testConsoleBufChild.cxx')
-rw-r--r--Source/kwsys/testConsoleBufChild.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/kwsys/testConsoleBufChild.cxx b/Source/kwsys/testConsoleBufChild.cxx
index 313323e..83bf545 100644
--- a/Source/kwsys/testConsoleBufChild.cxx
+++ b/Source/kwsys/testConsoleBufChild.cxx
@@ -28,7 +28,8 @@ int main(int argc, const char* argv[])
std::cout << argv[1] << std::endl;
std::cerr << argv[1] << std::endl;
} else {
- std::string str = kwsys::Encoding::ToNarrow(UnicodeTestString);
+ std::string str = kwsys::Encoding::ToNarrow(std::wstring(
+ UnicodeTestString, sizeof(UnicodeTestString) / sizeof(wchar_t) - 1));
std::cout << str << std::endl;
std::cerr << str << std::endl;
}