Menu

#1302 Editing colon after backslash in message box freezes Pd

v0.47
open
nobody
None
5
2017-07-19
2017-07-19
No

As an example: trying to delete the last colon in the message boxes in the helpfiles for text fromlist and text tolist freezes Pd.

Pd 0.47.1, OSX 10.10.5

Discussion

  • IOhannes m zmölnig

    confirmed on Debian/sid amd64, with both Pd-0.47-1 and Pd-0.48-0test1.

    this is a problem with the help-patch. a normal Pd patch wouldn't have a backslash in the code anywhere...
    also, it is only the GUI that is freezing, and Pd-core is happily contiuing to run...

     
  • Sebastian Shader

    I think users will want to edit message boxes in this way in order to get multiple lines. It seems like this is the format that [text tolist] and fromlist already use. This is how I found the bug in the first place: trying to use a message box to fill multiple lines of text in the format that [text tolist] used (and fromlist shows this is the way to do this in the helpfile). But I suppose the only safe way to use a message box for multiple lines is [text set]?

     

    Last edit: Sebastian Shader 2017-07-19
    • IOhannes m zmölnig

      fiven that you cannot type backslash in Pd, i don't think that anybody will want to do this.

      the question is, how do the backslashes get into patch, and what can we do to avoid that.

       
      • Sebastian Shader

        [text tolist] outputs newlines like this so that is one way and it seems like the only way [text fromlist] takes newlines (oviously without the backslash the message would be sent to a receiver). It is also possible to get \; with makefilename %c with 59 sent in & then to [set $1(.
        maybe [text fromlist]
        and tolist should be changed to use a different newline character?

         

        Last edit: Sebastian Shader 2017-07-20

Anonymous
Anonymous

Add attachments
Cancel