From dcde3148a5092d109815df7ba0142384cade7a0f Mon Sep 17 00:00:00 2001 From: Lukas Matena Date: Fri, 14 Jun 2024 10:09:49 +0200 Subject: [PATCH] Fixed loading of SLA archives when path contains non-ASCII characters --- src/slic3r/GUI/Jobs/SLAImportJob.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/slic3r/GUI/Jobs/SLAImportJob.cpp b/src/slic3r/GUI/Jobs/SLAImportJob.cpp index 77c9714b94..ea689905c0 100644 --- a/src/slic3r/GUI/Jobs/SLAImportJob.cpp +++ b/src/slic3r/GUI/Jobs/SLAImportJob.cpp @@ -105,8 +105,8 @@ void SLAImportJob::prepare() { reset(); - auto path = p->import_dlg->get_path(); - auto nm = wxFileName(path); + const std::string path = p->import_dlg->get_path(); + auto nm = wxFileName(from_u8(path)); p->path = !nm.Exists(wxFILE_EXISTS_REGULAR) ? "" : nm.GetFullPath(); if (p->path.empty()) { p->err = _u8L("The file does not exist.");