From b82c0639b9e35cc96f50a5c248b922975c240c06 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 12 Jan 2026 14:29:37 +0100 Subject: test/unit_tests: trying to fix console tests --- test/unit_tests/shared/console.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test/unit_tests') diff --git a/test/unit_tests/shared/console.hpp b/test/unit_tests/shared/console.hpp index cdc12e4..2dcb78b 100644 --- a/test/unit_tests/shared/console.hpp +++ b/test/unit_tests/shared/console.hpp @@ -107,7 +107,9 @@ public: for (int16_t c = 0; c < buffer_size.X; ++c) { oss << buffer[i * buffer_size.X + c].Char.UnicodeChar; } - result.emplace_back(boost::trim_right_copy(winapi::narrow(oss.str()))); + std::wstring temp{oss.str()}; + temp.erase(std::remove(temp.begin(), temp.end(), '\0'), temp.end()); + result.emplace_back(boost::trim_right_copy(winapi::narrow(temp))); } return result; -- cgit v1.3