FIX:boost::filesystem::path should use utf-8 encode string

jira: none
Change-Id: I51da114a5af35a510660b30cdbf05293cceb8381
(cherry picked from commit c7f57b66175138d6d7591d664476e883bf276854)
This commit is contained in:
zhou.xu 2024-12-17 14:44:13 +08:00 committed by Lane.Wei
parent f9048b5419
commit 7d1b21c5fc
1 changed files with 2 additions and 2 deletions

View File

@ -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;