mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-14 00:52:04 +00:00
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:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user