From cd94a2d879ab81259c5e993b329531d40c4060a0 Mon Sep 17 00:00:00 2001
From: Jonathan Wilkes <jon.w.wilkes@gmail.com>
Date: Mon, 6 Nov 2017 08:44:31 -0500
Subject: [PATCH] normalize file name for "pd init" message so enquote doesn't
 mangle it

---
 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 1a4001d0e..f924ebeba 100644
--- a/pd/nw/pdgui.js
+++ b/pd/nw/pdgui.js
@@ -1194,7 +1194,8 @@ function gui_startup(version, fontname_from_pd, fontweight_from_pd,
     //    } else {
     //        set oldtclversion 0
     //    }
-    pdsend("pd init", enquote(pwd), "0", font_fixed_metrics);
+    pdsend("pd init", enquote(defunkify_windows_path(pwd)), "0",
+        font_fixed_metrics);
 
     //    # add the audio and help menus to the Pd window.  We delayed this
     //    # so that we'd know the value of "apilist".
-- 
GitLab