From 1e266d874d7bfa9c42855238f53f5d8d70270bed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Thu, 28 Feb 2019 12:32:37 +0100 Subject: X11: Fix drag and drop from non-latin paths Fixes #25826. Co-authored-by: bruvzg <7645683+bruvzg@users.noreply.github.com> --- platform/x11/os_x11.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/x11/os_x11.cpp b/platform/x11/os_x11.cpp index 6a09c507c6..b7fbb89edf 100644 --- a/platform/x11/os_x11.cpp +++ b/platform/x11/os_x11.cpp @@ -2355,7 +2355,7 @@ void OS_X11::process_xevents() { Vector files = String((char *)p.data).split("\n", false); 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); -- cgit v1.2.3