escaping quotes in print options

Michael Sweet mike at easysw.com
Wed Aug 4 08:40:50 PDT 2004


Anonymous wrote:
> Hi,
> 
> I am adding some printing options to the commandline of the CUPS lpr
> client. In one of these option values I put escaped apostrof
> characters like this:
> 
> lpr -o textoption='value string with escaped \'apostrof\' characters'
> 
> 
> cupsParseOptions() unescapes this the right way, but my CUPS filter
> gets it like this:
> 
> textoption='value string with escaped 'apostrof' characters'
> 
> is there any way to get the value escaped again when my filter
> receives it  at my filter's argv[5], or is this a bug in CUPS?

It sounds like a bug; please file a STR at:

     http://www.cups.org/str.php

and please include which version of CUPS you are using, the compiler,
and the OS.

Thanks!

-- 
______________________________________________________________________
Michael Sweet, Easy Software Products           mike at easysw dot com
Printing Software for UNIX                       http://www.easysw.com




More information about the cups-devel mailing list