On Tue, 2009-07-14 at 13:22 +0200, Till Kamppeter wrote:
> 2. All shell-unfriendly characters in the device ID are replaced by '_':
> 
> Original:
> 
> MANUFACTURER:Hewlett-Packard;COMMAND SET:PJL,DW-PCL,ASCII;MODEL:hp 
> designjet 130nr (C7791D);CLASS:PRINTER;DESCRIPTION:Hewlett-Packard hp 
> designjet 130nr;
> 
> What got into /tmp/printer.log:
> 
> MANUFACTURER:Hewlett-Packard_COMMAND SET:PJL,DW-PCL,ASCII_MODEL:hp 
> designjet 130nr _C7791D__CLASS:PRINTER_DESCRIPTION:Hewlett-Packard hp 
> designjet 130nr_

Wow.

I wish I understood why any programs are still trying to munge command
lines by replacing strings like '%p' on their own instead of using
actual environment variables and letting the shell (or wordexp() if you
like) do it correctly.  The 'printf' style is useful for constructing
strings of characters, but no good at all at constructing an argument
vector.

In this case we actually need the text of the Device ID completely
unaltered.  It's useless otherwise.

Tim.
*/

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
devkit-devel mailing list
devkit-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/devkit-devel

Reply via email to