api2021 part I #4
|
@ -5,7 +5,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2018, Tomasz Sowa
|
* Copyright (c) 2018-2021, Tomasz Sowa
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* 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 )
|
if( log_stdout )
|
||||||
{
|
{
|
||||||
PT::WideToUTF8(*buffer, std::cout);
|
PT::WideStreamToUTF8(*buffer, std::cout);
|
||||||
}
|
}
|
||||||
|
|
||||||
if( !log_file.empty() )
|
if( !log_file.empty() )
|
||||||
|
@ -126,7 +126,7 @@ void FileLog::save_log(PT::WTextStream * buffer)
|
||||||
|
|
||||||
if( file )
|
if( file )
|
||||||
{
|
{
|
||||||
PT::WideToUTF8(*buffer, file);
|
PT::WideStreamToUTF8(*buffer, file);
|
||||||
file.flush();
|
file.flush();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue