From bc9e4a3844cf4eab7514d68b474cf98747f5a5ce Mon Sep 17 00:00:00 2001 From: Tomasz Sowa Date: Tue, 16 Mar 2021 18:35:08 +0100 Subject: [PATCH] use PT::WideStreamToUTF8() instead of PT::WideToUTF8() for a moment --- log/filelog.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/log/filelog.cpp b/log/filelog.cpp index e4de22e..82c1cb7 100644 --- a/log/filelog.cpp +++ b/log/filelog.cpp @@ -5,7 +5,7 @@ */ /* - * Copyright (c) 2018, Tomasz Sowa + * Copyright (c) 2018-2021, Tomasz Sowa * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -111,7 +111,7 @@ void FileLog::save_log(PT::WTextStream * buffer) { if( log_stdout ) { - PT::WideToUTF8(*buffer, std::cout); + PT::WideStreamToUTF8(*buffer, std::cout); } if( !log_file.empty() ) @@ -126,7 +126,7 @@ void FileLog::save_log(PT::WTextStream * buffer) if( file ) { - PT::WideToUTF8(*buffer, file); + PT::WideStreamToUTF8(*buffer, file); file.flush(); } }