From 6b38ccce2e7de49424513fbd6da00e24e30279e3 Mon Sep 17 00:00:00 2001
From: Sojourner Truth <jon.w.wilkes@gmail.com>
Date: Sat, 13 Aug 2016 17:43:31 -0400
Subject: [PATCH] normalize windows paths for openpanel and savepanel

---
 pd/nw/pdgui.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/pd/nw/pdgui.js b/pd/nw/pdgui.js
index 53e520933..b83dad5f9 100644
--- a/pd/nw/pdgui.js
+++ b/pd/nw/pdgui.js
@@ -3613,7 +3613,8 @@ function gui_savepanel(cid, target, path) {
 }
 
 exports.file_dialog_callback = function(file_string) {
-    pdsend(file_dialog_target, "callback", enquote(file_string));
+    pdsend(file_dialog_target, "callback",
+        enquote(defunkify_windows_path(file_string)));
 }
 
 // Used to convert the ["key", "value"...] arrays coming from
-- 
GitLab