Patches item #1415539, was opened at 2006-01-26 09:01 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=478072&aid=1415539...
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: puredata Group: bugfix Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Re: [ pure-data-Patches-1412210 ] fix for bug in menu_openht
Initial Comment: In u_main.tk the procedure menu_openhtml fails on the NT platform when pd_guidir contains both spaces and the double dot (/..) which is currently always added for NT when pd_guidir is constructed from e.g. "C:/Program Files/pd/bin" as "C:/Program Files/pd/bin/.." instead of the more straightforward "C:/Program Files/pd".
Forcing the use of short filenames is one way around this but the attached patch just strips off the "/bin" instead of adding "/.." to it.
This line terminates the path just before the last slash:
set pd_guidir [string range $pd_guidir 0 [expr [string last / $pd_guidir] - 1]]
It also might be more efficient to work only with pd_guidir, since it always gets shortened, so I took out the temporary string pd_gui3 as well.
Martin Peach
martinrp@vax2.concordia.ca
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=478072&aid=1415539...