mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 20:03:47 +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)
|
bool load_drc(const char *path, TriangleMesh *meshptr)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
boost::iostreams::mapped_file_source file(path);
|
boost::iostreams::mapped_file_source file{boost::filesystem::path{path}};
|
||||||
|
|
||||||
DecoderBuffer buffer;
|
DecoderBuffer buffer;
|
||||||
buffer.Init(file.data(), file.size());
|
buffer.Init(file.data(), file.size());
|
||||||
|
|||||||
Reference in New Issue
Block a user