[Pkg-cups-devel] Bug#394255: libcupsys2: ppd API fails to discover printer nickname and options

Romain JACQUET romain.jacquet at clarisys.fr
Fri Oct 20 13:08:34 UTC 2006


Package: libcupsys2
Version: 1.2.4-2+b1
Severity: important

Hello,

I have discovered a problem in the ppd cups API. The new API of cups ppd does
not correctly detect nickname and options of the printer.

I have tested on many ppds like
http://www.linuxprinting.org/foomatic-db/db/source/PPD/HP/mono_laser/hp_LaserJet_2300.ppd. And it does not work.

I have tried to patch it but I have failed.
For the nickname, the problem is due to the function ppdOpen2(). This function
does not check the return code of the function cupsCharsetToUTF8(). In this case,
this function returns -1.

I joined a program that reproduces the bug. Called with the previous ppd, the
program must print "HP LaserJet 2300 Postscript (recommended)" and he prints
nothing. This code worked perfectly with the version 1.1.23-12.


Thanks.


-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-1-386
Locale: LANG=fr_FR at euro, LC_CTYPE=fr_FR at euro (charmap=ISO-8859-15)

Versions of packages libcupsys2 depends on:
ii  libc6                        2.3.6.ds1-4 GNU C Library: Shared libraries
ii  libgnutls13                  1.4.4-1     the GNU TLS library - runtime libr
ii  zlib1g                       1:1.2.3-13  compression library - runtime

libcupsys2 recommends no packages.

-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test-cups.c
Type: text/x-c
Size: 447 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-cups-devel/attachments/20061020/ca952a5a/test-cups.bin


More information about the Pkg-cups-devel mailing list