forked from 1b-agent/opencadstudio-upstream
fix(plugins): preserve document path encoding
Keep OS-native path data intact across IPC instead of replacing non-UTF-8 bytes. Refs #901
This commit is contained in:
1 parent
1c52a2afcf
commit
0d766be3df
6 files changed
+13
-11
No files matched your search
@@ -74,8 +74,8 @@ pub fn handle_plugin_request(
|
||||
PluginResponse::Ok
|
||||
}
|
||||
GetTabId => PluginResponse::TabId(host.tab_id()),
|
||||
DocumentPath { tab_id } => {
|
||||
PluginResponse::DocumentPath(host.document_path(tab_id).map(|p| p.to_string_lossy().to_string()))
|
||||
}
|
||||
DocumentPath { tab_id } => PluginResponse::DocumentPath(
|
||||
host.document_path(tab_id).map(|path| path.into_os_string()),
|
||||
),
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user