From aca58384d909cd450bae59a6f46679d8cbb3606a Mon Sep 17 00:00:00 2001 From: Slávek Banko Date: Mon, 2 Nov 2020 22:33:43 +0100 Subject: Added controlled conversions to char* instead of automatic ascii conversions. The definition of -UTQT_NO_ASCII_CAST is no longer needed. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko (cherry picked from commit 2c73ccdf45212ab2a43582955be0eff21c70f971) --- microbe/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'microbe/main.cpp') diff --git a/microbe/main.cpp b/microbe/main.cpp index 7b6d5ab..affa666 100644 --- a/microbe/main.cpp +++ b/microbe/main.cpp @@ -64,14 +64,14 @@ int main(int argc, char **argv) if ( !errorReport.isEmpty() ) { - cerr << mb.errorReport(); + cerr << mb.errorReport().local8Bit(); return 1; // If there was an error, don't write the output to file. } else { ofstream out(args->arg(1)); - out << s; + out << s.local8Bit(); return 0; } } -- cgit v1.2.3