Skip to content

Commit 60da4b0

Browse files
committed
fix utf8 string (msvc)
1 parent a48092f commit 60da4b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sofa/framework/Helper/src/sofa/helper/system/FileRepository.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ bool FileRepository::findFileIn(std::string& filename, const std::string& path)
250250
if (filename.empty()) return false; // no filename
251251
const std::string newfname = SetDirectory::GetRelativeFromDir(filename.c_str(), path.c_str());
252252

253-
const auto p = fs::path(newfname);
253+
const auto p = fs::path(std::u8string(newfname.begin(), newfname.end()));
254254
if (fs::exists(p))
255255
{
256256
// File found

0 commit comments

Comments
 (0)