forked from mirrors/0ad
rename [w]string_to_[w]string UTF8
add safer/more portable/less dependent on locale implementation of wchar_t <-> UTF8 This was SVN commit r7185.
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( string_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