IOhannes m zmoelnig wrote:
s.koepf wrote:
Hi,
IOhannes m zmoelnig wrote:
[...]
or - if you prefer built-ins like me- use [makefilename %c]
I mentioned this before but maybe it was the wrong thread, anyway I'm still interested what happens on other systems with this:
[123] | [makefilename %c] | [symbol]
Here (0.38.3 and 0.39.0, on XP) it freezes the patch. This happens only with 123 and the connection to [symbol].
hi
your patch does not freeze anything on my machine, but this is only because [symbol] denotes (in my world) and object called "symbol". what you mean is rather a symbol-box (Ctrl-4), which could be represented better (imho) by [symbol\
now why? the solution is pretty simple: pd does a very bad job when it comes to escaping special characters. "{" and "}" are such special characters (in tcl world); this is why they are banned from normal user-input. however, 123 is the ascii value of "{", and by using [symbol\ you are sending this special symbol to the pd-gui (tcl/tk!); now tcl uses "{" for starting a list and WAITS for "}" to end the list. if you manage to send "}" (ascii 125) to the pd-gui, pd will unfreeze and everything is fine again.
example:
[123, 125( | [makefilename %c] | [symbol\
Thanks IOhannes,
I followed many ot those dicussions on the subject on this list, but what I never saw is a complete list of all "dangerous" characters in pd/tcl/tk. Would be nice to have one.
Sigi