[PD-dev] Re: FOUND! Re: [entry] broken on RC4/5

IOhannes m zmoelnig zmoelnig at iem.at
Mon Dec 12 15:56:55 CET 2005


B. Bogart wrote:
> I'm not sure if this should stay on gem-dev or what...
> 
> Anyhow I've traced the issue and here is where the problem lies. My
> original code outputted the symbol like so:
> 
> sys_vgui("pd [concat entry%p output [.x%x.c.s%x get 0.0 end] \\;]\n", x,
> x->x_glist, x);
> 
> Johannes made the valiant effort to escape "," and ";" so that are not
> seperated into descrete messages in PD. Basically meaning you can't type
> a message for the entry widget containing messages for it, and you can't
> send to a receive directly from the widget. I think this is ok, but I
> did not see much reason to change it. His change looks like this:
> 
> sys_vgui("pd [concat entry%p output [string map {\",\" \"\\\\,\" \";\"
> \"\\\\;} [.x%x.c.s%x get 0.0 end]]\" \\;]\n", x, x->x_glist, x);

very weird.
now that i looked at it, i can confirm that it doesn't work here either!
my first thought was that i probably used a patched pd-version, but 
looking a bit closer it revealed that the quoting was really just wrong.
it should read:

sys_vgui("pd [concat entry%p output [string map {\",\" \"\\\\,\" \";\"
  \"\\\\;\"} [.x%x.c.s%x get 0.0 end]] \\;]\n", x, x->x_glist, x);

(so the escaped quote at after "end]]" should really be before "}")

i have no idea how this happened.

attached is a unified diff for my changes (or should i simply commit them?)

mfg.asd.r
IOhannes

ps: i moved this to pd-dev (even though it might be a bit late)

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: entry.diff
URL: <http://lists.puredata.info/pipermail/pd-dev/attachments/20051212/9c6dde3d/attachment.asc>


More information about the Pd-dev mailing list