1
0
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:
janwas
2009-11-09 14:52:51 +00:00
parent 33ec9060dd
commit 450da0aaf7
17 changed files with 210 additions and 49 deletions
+1 -1
View File
@@ -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