mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-10-14 07:17:44 +00:00
implement changes suggested by Philip:
- add self-test - allow decoding UTF8 values beyond BMP (and replace them later) - quietly replace invalid bytes This was SVN commit r7187.
This commit is contained in:
@@ -375,7 +375,7 @@ void CNetLogFileSink::OpenFile( const fs::wpath& fileName, bool append )
|
||||
if ( m_File.is_open() ) m_File.close();
|
||||
|
||||
// Open the file and log start
|
||||
m_File.open( UTF8_from_wstring(fileName.string()).c_str(), append ? std::ios::app : std::ios::out );
|
||||
m_File.open( utf8_from_wstring(fileName.string()).c_str(), append ? std::ios::app : std::ios::out );
|
||||
if ( !m_File.is_open() )
|
||||
{
|
||||
// throw std::ios_base::failure
|
||||
|
||||
Reference in New Issue
Block a user