use PT::WideStreamToUTF8() instead of PT::WideToUTF8() for a moment

This commit is contained in:
Tomasz Sowa 2021-03-16 18:35:08 +01:00
parent 4ef8f5a884
commit bc9e4a3844
1 changed files with 3 additions and 3 deletions

View File

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