Fix unable to load DRC file if path contains non-ascii characters (#12619)

Fix issue that failed to load DRC file if path contains non-ascii character
This commit is contained in:
Noisyfox
2026-03-06 10:24:06 +08:00
committed by GitHub
parent 5ac382a9cd
commit 7952721931

View File

@@ -26,7 +26,7 @@ namespace Slic3r {
bool load_drc(const char *path, TriangleMesh *meshptr)
{
try {
boost::iostreams::mapped_file_source file(path);
boost::iostreams::mapped_file_source file{boost::filesystem::path{path}};
DecoderBuffer buffer;
buffer.Init(file.data(), file.size());