diff options
Diffstat (limited to 'test/echo.cpp')
| -rw-r--r-- | test/echo.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/echo.cpp b/test/echo.cpp index 7354e7e..858ee3a 100644 --- a/test/echo.cpp +++ b/test/echo.cpp @@ -10,6 +10,7 @@ #include <fcntl.h> // clang-format on +#include <format> #include <iostream> #include <string> @@ -23,12 +24,12 @@ int wmain(int argc, wchar_t* argv[]) { if (argc > 0) { for (int i = 0; i < argc; ++i) { - std::wcout << argv[i] << L'\n'; + std::wcout << std::format(L"{}\n", argv[i]); } } else { std::wstring line; while (std::getline(std::wcin, line)) { - std::wcout << line << L'\n'; + std::wcout << std::format(L"{}\n", line); } } return 0; |
