Re: gdi32: Add job name field into CreateSpoolFile (try2)

2008-10-18 Thread Michael Karcher
Am Samstag, den 18.10.2008, 15:58 +0400 schrieb Konstantin Kondratyuk: > Try 2: add quotes in parameter: -T'%s' That's the right way to go, but are you sure that pszTitle does not contain single quotes itself? If not, you have to escape them (for the shell, it should be "\" -> "'\''") or to replace

Re: gdi32: Add job name field into CreateSpoolFile

2008-10-17 Thread Detlef Riekenberg
On Mo, 2008-10-13 at 12:29 +0400, Konstantin Kondratyuk wrote: > -sprintf(psCmd,"|lpr -P'%s'",pszOutput+4); > +sprintf(psCmd,"|lpr -T %s -P'%s'",pszTitle,pszOutput+4); This is broken, when there is a space in the Title. -- By by ... Detlef