From 7d1b21c5fc8700592d0c7f172355474be464f54c Mon Sep 17 00:00:00 2001 From: "zhou.xu" Date: Tue, 17 Dec 2024 14:44:13 +0800 Subject: [PATCH] FIX:boost::filesystem::path should use utf-8 encode string jira: none Change-Id: I51da114a5af35a510660b30cdbf05293cceb8381 (cherry picked from commit c7f57b66175138d6d7591d664476e883bf276854) --- src/slic3r/GUI/Plater.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index 892474874..1d4d1ec3a 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -10654,10 +10654,10 @@ bool Plater::load_same_type_files(const wxArrayString &filenames) { if (filenames.size() <= 1) { return true; } else { const wxString &filename = filenames.front(); - boost::filesystem::path path(filename.ToStdString()); + boost::filesystem::path path(filename.utf8_string()); auto extension = trans_extension(path); for (size_t i = 1; i < filenames.size(); i++) { - boost::filesystem::path temp(filenames[i].ToStdString()); + boost::filesystem::path temp(filenames[i].utf8_string()); auto temp_extension = trans_extension(temp); if (extension.extension() != temp_extension.extension()) { return false;