use PT::WideStreamToUTF8() instead of PT::WideToUTF8() for a moment
This commit is contained in:
parent
4ef8f5a884
commit
bc9e4a3844
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue