FIRE-19855; use wide character path name for windows.

meow-7.2.2
Nicky 2016-08-17 22:45:57 +02:00
parent b9b0b15e53
commit d05708f4b3
1 changed files with 5 additions and 2 deletions

View File

@ -186,8 +186,11 @@ bool LLLocalBitmap::updateSelf(EUpdateType optional_firstupdate)
// const std::time_t temp_time = boost::filesystem::last_write_time(boost::filesystem::path(mFilename));
std::string strFName = nd::aprhelper::ndConvertFilename( mFilename );
const std::time_t temp_time = boost::filesystem::last_write_time(boost::filesystem::path( strFName ) );
#ifndef LL_WINDOWS
const std::time_t temp_time = boost::filesystem::last_write_time(boost::filesystem::path(mFilename));
#else
const std::time_t temp_time = boost::filesystem::last_write_time(boost::filesystem::path( utf8str_to_utf16str( mFilename ) ) );
#endif
// </FS:ND>