aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/echo.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/echo.cpp b/test/echo.cpp
index 6d6e6df..8f01953 100644
--- a/test/echo.cpp
+++ b/test/echo.cpp
@@ -5,9 +5,16 @@
// Simple UTF-16 echo.
+// clang-format off
+#include <io.h>
+#include <fcntl.h>
+// clang-format on
+
#include <iostream>
int wmain(int argc, wchar_t* argv[]) {
+ _setmode(_fileno(stdout), _O_U16TEXT);
+
for (int i = 1; i < argc; ++i) {
std::wcout << argv[i] << L'\n';
}