Fix non-ASCII path corruption on Windows using from_path() helper (#13036)
This commit is contained in:
@@ -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(), "<>[]:/\\|?*\""));
|
||||
|
||||
Reference in New Issue
Block a user