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(); } }