Skip to content

Commit c7cd3b1

Browse files
committed
Fix windows-unsafe unicode path usage in lsl syntax cache
1 parent 3725517 commit c7cd3b1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

indra/newview/llsyntaxid.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ std::vector<std::string> LLSyntaxDefCache::getCacheFileNames() const
521521

522522
LLSD LLSyntaxDefCache::loadDeserializedCacheFile(const std::string& file_path)
523523
{
524-
std::ifstream file(file_path.c_str());
524+
llifstream file(file_path);
525525
if (file.good())
526526
{
527527
LLSD content;
@@ -542,7 +542,7 @@ std::string LLSyntaxDefCache::loadCacheFile(const std::string& name) const
542542
std::string full_path = mFileCachePaths.getPath(name);
543543
if (!full_path.empty())
544544
{
545-
std::ifstream file(full_path.c_str());
545+
llifstream file(full_path);
546546
if (file.good())
547547
{
548548
std::ostringstream ss;

0 commit comments

Comments
 (0)