From 1596a66c21ec7da87779655bbb878bbb8536b0d7 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Fri, 16 Oct 2020 10:09:42 +0300 Subject: echo: make it really UTF-16 --- test/echo.cpp | 7 +++++++ 1 file changed, 7 insertions(+) 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 +#include +// clang-format on + #include 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'; } -- cgit v1.2.3