[Pkg-cups-devel] Bug#365268: cupsys-client: Invalid output from lpstat (stack problem?)

Vincent Smeets V.Smeets at T-Online.de
Fri Apr 28 22:04:40 UTC 2006


Package: cupsys-client
Version: 1.1.23-10sarge1
Severity: normal


Hallo,

I have a HP DeskJet 670C connected to the parallel port and using it
with cupsys/foomatic/hpijs. I can use my printer from various sources so
it is configuered ok.

However, showing the queue with "lpstat -o" or "lpstat -t" gives invalid
output. This is locale dependent. The output is the locale en_US is
wrong. The output is correct in the locale C nl_NL de_DE.

I think it is some kind of stack problem because the output different
for different calls of the command.

Here are the commands I used:

PC-Vincent:535$ locale
LANG=en_US
LC_CTYPE="en_US"
LC_NUMERIC="en_US"
LC_TIME="en_US"
LC_COLLATE="en_US"
LC_MONETARY="en_US"
LC_MESSAGES="en_US"
LC_PAPER="en_US"
LC_NAME="en_US"
LC_ADDRESS="en_US"
LC_TELEPHONE="en_US"
LC_MEASUREMENT="en_US"
LC_IDENTIFICATION="en_US"
LC_ALL=
PC-Vincent:536$ echo "Just some text." | /usr/bin/lp
request id is HP-DeskJet-670C-42 (1 file(s))
PC-Vincent:537$ LC_ALL=C /usr/bin/lpstat -o
HP-DeskJet-670C-42      vincent           1024   Fri Apr 28 23:24:30 2006
PC-Vincent:538$ LC_ALL=en_US /usr/bin/lpstat -o
HP-DeskJet-670C-42      vincent           1024   ÄKe
àøÿ¿hz@ùÿ¿Øøÿ¿@x at t
PC-Vincent:539$ /usr/bin/lpstat -o
HP-DeskJet-670C-42      vincent           1024   ÄKe
ðøÿ¿hz@ ùÿ¿èøÿ¿@x at t
PC-Vincent:540$ LC_ALL=nl_NL /usr/bin/lpstat -o
HP-DeskJet-670C-42      vincent           1024   vr 28 apr 2006 23:24:30 
CEST
PC-Vincent:541$


Regards,
Vincent Smeets


-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.8-3-686
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages cupsys-client depends on:
ii  adduser               3.63               Add and remove users and groups
ii  libc6                 2.3.2.ds1-22sarge3 GNU C Library: Shared 
libraries an
ii  libcupsys2-gnutls10   1.1.23-10sarge1    Common UNIX Printing 
System(tm) -
ii  zlib1g                1:1.2.2-4.sarge.2  compression library - runtime

-- no debconf information




More information about the Pkg-cups-devel mailing list