Fix non-ASCII path corruption on Windows using from_path() helper (#13036)

This commit is contained in:
SoftFever
2026-03-30 14:51:45 +08:00
committed by GitHub
parent 84408657eb
commit fa67bc87f6
5 changed files with 13 additions and 13 deletions

View File

@@ -1541,7 +1541,7 @@ void SendToPrinterDialog::set_default()
}
fs::path filename_path(filename.c_str());
m_current_project_name = wxString::FromUTF8(filename_path.filename().string());
m_current_project_name = from_path(filename_path.filename());
//unsupported character filter
m_current_project_name = from_u8(filter_characters(m_current_project_name.ToUTF8().data(), "<>[]:/\\|?*\""));