From: <ha...@us...> - 2009-10-22 18:24:30
|
Revision: 6356 http://octave.svn.sourceforge.net/octave/?rev=6356&view=rev Author: hauberg Date: 2009-10-22 18:24:17 +0000 (Thu, 22 Oct 2009) Log Message: ----------- Escape certain characters Modified Paths: -------------- trunk/octave-forge/main/zenity/inst/zenity_list.m Modified: trunk/octave-forge/main/zenity/inst/zenity_list.m =================================================================== --- trunk/octave-forge/main/zenity/inst/zenity_list.m 2009-10-22 08:56:22 UTC (rev 6355) +++ trunk/octave-forge/main/zenity/inst/zenity_list.m 2009-10-22 18:24:17 UTC (rev 6356) @@ -78,6 +78,11 @@ columns = sprintf('--column="%s" ', columns{:}); data = sprintf("%s ", data{:}); + + ## Escape certain characters + data = strrep (data, "\\", "\\\\"); + data = strrep (data, "(", "\\("); + data = strrep (data, ")", "\\)"); cmd = sprintf('zenity --list --title="%s" %s %s %s --print-column="%s" --separator=":" %s %s', ... title, checklist, radiolist, editable, print_column, columns, data); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |