diff options
| -rw-r--r-- | indra/llfilesystem/lldir.cpp | 4 | ||||
| -rw-r--r-- | indra/llfilesystem/lldiskcache.cpp | 4 | 
2 files changed, 8 insertions, 0 deletions
| diff --git a/indra/llfilesystem/lldir.cpp b/indra/llfilesystem/lldir.cpp index e8e5d6538b..d12080aafa 100644 --- a/indra/llfilesystem/lldir.cpp +++ b/indra/llfilesystem/lldir.cpp @@ -121,7 +121,11 @@ std::vector<std::string> LLDir::getFilesInDir(const std::string &dirname)              {                  if (boost::filesystem::is_regular_file(dir_itr->status()))                  { +#if LL_WINDOWS +                    v.push_back(utf16str_to_utf8str(dir_itr->path().filename().wstring())); +#else                      v.push_back(dir_itr->path().filename().string()); +#endif                  }              }          } diff --git a/indra/llfilesystem/lldiskcache.cpp b/indra/llfilesystem/lldiskcache.cpp index 49904911a9..58bbb995b0 100644 --- a/indra/llfilesystem/lldiskcache.cpp +++ b/indra/llfilesystem/lldiskcache.cpp @@ -159,7 +159,11 @@ void LLDiskCache::purge()          }          if (should_remove)          { +#if LL_WINDOWS +            boost::filesystem::remove(utf8str_to_utf16str(entry.second.second), ec); +#else              boost::filesystem::remove(entry.second.second, ec); +#endif              if (ec.failed())              {                  LL_WARNS() << "Failed to delete cache file " << entry.second.second << ": " << ec.message() << LL_ENDL; | 
