X11: Fix drag and drop from non-latin paths

Fixes #25826.

Co-authored-by: bruvzg <7645683+bruvzg@users.noreply.github.com>
This commit is contained in:
Rémi Verschelde 2019-02-28 12:32:37 +01:00
parent f2003b1a7e
commit 1e266d874d

View file

@ -2355,7 +2355,7 @@ void OS_X11::process_xevents() {
Vector<String> files = String((char *)p.data).split("\n", false); Vector<String> files = String((char *)p.data).split("\n", false);
for (int i = 0; i < files.size(); i++) { for (int i = 0; i < files.size(); i++) {
files.write[i] = files[i].replace("file://", "").replace("%20", " ").strip_escapes(); files.write[i] = files[i].replace("file://", "").http_unescape().strip_escapes();
} }
main_loop->drop_files(files); main_loop->drop_files(files);