From 7952721931b511a3e695b98cc6f19eefdc10c61f Mon Sep 17 00:00:00 2001 From: Noisyfox Date: Fri, 6 Mar 2026 10:24:06 +0800 Subject: [PATCH] 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 --- src/libslic3r/Format/DRC.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libslic3r/Format/DRC.cpp b/src/libslic3r/Format/DRC.cpp index 3f6305b6bf..d489f04dba 100644 --- a/src/libslic3r/Format/DRC.cpp +++ b/src/libslic3r/Format/DRC.cpp @@ -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());