# HG changeset patch # User Rik # Date 1396034125 25200 # Node ID cdc16fbb513f440c7c4cf7dd38887331f6524918 # Parent 348f67886dc4d2dedca7efb05826e79db2895308 Allow only Ghostscript devices when spooling to a printer (bug #41957) * __print_parse_opts__.m: Allow only Ghostscript devices when spooling to a printer. diff -r 348f67886dc4 -r cdc16fbb513f scripts/plot/util/private/__print_parse_opts__.m --- a/scripts/plot/util/private/__print_parse_opts__.m Fri Mar 28 08:47:55 2014 -0700 +++ b/scripts/plot/util/private/__print_parse_opts__.m Fri Mar 28 12:15:25 2014 -0700 @@ -335,9 +335,8 @@ error ("print: a file name may not specified when spooling to a printer") endif if (! any (strcmp (arg_st.devopt, gs_device_list)) - || ! any (strcmp (arg_st.devopt, {"pswrite", "ps2write"}))) - ## Only postscript and supported ghostscript devices - error ("print: invalid format for spooling to a printer") + ## Only supported ghostscript devices + error ("print: format must be a valid Ghostscript format for spooling to a printer") endif elseif (isempty (arg_st.name)) error ("print: an output file name must be specified")