Bug 105732 - lpstat shows garbage
Summary: lpstat shows garbage
Status: RESOLVED FIXED
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: Other (show other bugs)
Version: Beta 2
Hardware: Other All
: P5 - None : Minor
Target Milestone: ---
Assignee: Klaus Singvogel
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-18 23:58 UTC by Andreas Klein
Modified: 2005-09-02 14:07 UTC (History)
0 users

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
/etc/cups (58.75 KB, application/x-bzip2)
2005-08-22 08:44 UTC, Andreas Klein
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Klein 2005-08-18 23:58:06 UTC
- lp tiger.eps (or some other file)
- type lpstat -t to monitor you job.
- On the right hand side of the jobsize some garbage is displayed:

device for hp2200: usb://HP/LaserJet%202200
hp2200 accepting requests since Jan 01 00:00
printer hp2200 now printing hp2200-2.  enabled since Jan 01 00:00
hp2200-2                tttestus         78848   �
tttestus@pluto:~> lpstat -t
scheduler is running
system default destination: hp2200
device for hp2200: usb://HP/LaserJet%202200
hp2200 accepting requests since Jan 01 00:00
printer hp2200 now printing hp2200-2.  enabled since Jan 01 00:00
hp2200-2                tttestus         78848   hΣ
tttestus@pluto:~> lpstat -t
scheduler is running
system default destination: hp2200
device for hp2200: usb://HP/LaserJet%202200
hp2200 accepting requests since Jan 01 00:00
printer hp2200 now printing hp2200-2.  enabled since Jan 01 00:00
hp2200-2                tttestus         78848   �
tttestus@pluto:~> lpstat -t
scheduler is running
system default destination: hp2200
device for hp2200: usb://HP/LaserJet%202200
hp2200 accepting requests since Jan 01 00:00
printer hp2200 now printing hp2200-2.  enabled since Jan 01 00:00
hp2200-2                tttestus         78848   ($
tttestus@pluto:~> lpstat -t
scheduler is running
system default destination: hp2200
device for hp2200: usb://HP/LaserJet%202200
hp2200 accepting requests since Jan 01 00:00
printer hp2200 now printing hp2200-2.  enabled since Jan 01 00:00
hp2200-2                tttestus         78848   �
Comment 1 Klaus Singvogel 2005-08-22 08:20:00 UTC
Sorry for delay, but was ill.  
  
Bad news is, that I cannot reproduce this problem. :-(  
  
Which architecture are you using?  
Which locale do you have? Just paste output of /usr/bin/locale  
Can you attache your cups configuration: /etc/cups/* (incl. subdirs)? 
Which kind of document are you printing? ASCII? PostScript? etc. 
Comment 2 Andreas Klein 2005-08-22 08:43:53 UTC
(In reply to comment #1)
> Bad news is, that I cannot reproduce this problem. :-(  

But, I can. So let's see if we can find out the difference.

> Which architecture are you using?  

i386. The machine is a IBM R50p notebook.

> Which locale do you have? Just paste output of /usr/bin/locale

tttestus@pluto:~> /usr/bin/locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

  
> Can you attache your cups configuration: /etc/cups/* (incl. subdirs)? 

Will attach it.

> Which kind of document are you printing? ASCII? PostScript? etc.

lp /usr/share/ghostscript/8.15/examples/tiger.eps
Comment 3 Andreas Klein 2005-08-22 08:44:35 UTC
Created attachment 46830 [details]
/etc/cups
Comment 4 Klaus Singvogel 2005-08-22 12:00:06 UTC
Thanks.  
I think it seems to be the problem of the chosen locale settings. Please, try:  
   env LC_CTYPE="en_GB.utf-8" lpstat -t  
and tell me, if it is gone (at my side the problem is gone then). 
 
If it's gone by you either, I will make reassign this to a locale issue. 
Comment 5 Andreas Klein 2005-08-22 13:05:13 UTC
Setting LC_CTYPE to "en_GB.utf-8" does not really help.
As you can see, the problem still occurs sometimes, but it happens less frequently.

tttestus@pluto:~> env LC_CTYPE="en_GB.utf-8" lpstat -t
scheduler is running
system default destination: hp2200
device for hp2200: usb://HP/LaserJet%202200
hp2200 accepting requests since Jan 01 00:00
printer hp2200 now printing hp2200-6.  enabled since Jan 01 00:00
hp2200-6                tttestus         78848
tttestus@pluto:~> env LC_CTYPE="en_GB.utf-8" lpstat -t
scheduler is running
system default destination: hp2200
device for hp2200: usb://HP/LaserJet%202200
hp2200 accepting requests since Jan 01 00:00
printer hp2200 now printing hp2200-6.  enabled since Jan 01 00:00
hp2200-6                tttestus         78848   !
tttestus@pluto:~> env LC_CTYPE="en_GB.utf-8" lpstat -t
scheduler is running
system default destination: hp2200
device for hp2200: usb://HP/LaserJet%202200
hp2200 accepting requests since Jan 01 00:00
printer hp2200 now printing hp2200-6.  enabled since Jan 01 00:00
hp2200-6                tttestus         78848
tttestus@pluto:~> env LC_CTYPE="en_GB.utf-8" lpstat -t
scheduler is running
system default destination: hp2200
device for hp2200: usb://HP/LaserJet%202200
hp2200 accepting requests since Jan 01 00:00
printer hp2200 now printing hp2200-6.  enabled since Jan 01 00:00
hp2200-6                tttestus         78848   �ʿ
tttestus@pluto:~> env LC_CTYPE="en_GB.utf-8" lpstat -t
scheduler is running
system default destination: hp2200
device for hp2200: usb://HP/LaserJet%202200
hp2200 accepting requests since Jan 01 00:00
printer hp2200 now printing hp2200-6.  enabled since Jan 01 00:00
hp2200-6                tttestus         78848   K
tttestus@pluto:~> env LC_CTYPE="en_GB.utf-8" lpstat -t
scheduler is running
system default destination: hp2200
device for hp2200: usb://HP/LaserJet%202200
hp2200 accepting requests since Jan 01 00:00
printer hp2200 now printing hp2200-6.  enabled since Jan 01 00:00
hp2200-6                tttestus         78848
Comment 6 Klaus Singvogel 2005-08-22 13:19:06 UTC
My fault. Sorry. 
Meant LC_CTIME, but was thinking on a LC_CTYPE fix. So I wrote LC_CTYPE. :( 
 
Try again, please:  
 env LC_CTIME="en_GB.utf-8" lpstat -t  
Comment 7 Andreas Klein 2005-08-22 13:25:07 UTC
Does not help either.

tttestus@pluto:~> env LC_CTIME="en_GB.utf-8" lpstat -t
scheduler is running
system default destination: hp2200
device for hp2200: usb://HP/LaserJet%202200
hp2200 accepting requests since Jan 01 00:00
printer hp2200 now printing hp2200-7.  enabled since Jan 01 00:00
hp2200-7                tttestus         78848   X>
tttestus@pluto:~> env LC_CTIME="en_GB.utf-8" lpstat -t
scheduler is running
system default destination: hp2200
device for hp2200: usb://HP/LaserJet%202200
hp2200 accepting requests since Jan 01 00:00
printer hp2200 now printing hp2200-7.  enabled since Jan 01 00:00
hp2200-7                tttestus         78848   �
tttestus@pluto:~> env LC_CTIME="en_GB.utf-8" lpstat -t
scheduler is running
system default destination: hp2200
device for hp2200: usb://HP/LaserJet%202200
hp2200 accepting requests since Jan 01 00:00
printer hp2200 now printing hp2200-7.  enabled since Jan 01 00:00
hp2200-7                tttestus         78848   8
Comment 8 Klaus Singvogel 2005-09-01 11:46:00 UTC
Andreas, is the problem still present in beta4? 
I cannot reproduce it, but hopefully it is gone. 
 
BTW: I'm reducing it to MINOR, as I'm still unable to reproduce it. 
Comment 9 Andreas Klein 2005-09-01 18:23:06 UTC
Sorry, but I have to dissapoint you. The problem still exists.
If you want, I can create an account on the machine. The you will be able to
reproduce it :-)

pluto:~ # lpstat -t
scheduler is running
system default destination: laserjet2200
device for laserjet2200: hp:/usb/HP_LaserJet_2200?device=/dev/usb/lp0
laserjet2200 accepting requests since Jan 01 00:00
printer laserjet2200 now printing laserjet2200-1.  enabled since Jan 01 00:00
laserjet2200-1          root             78848   ��
pluto:~ # lpstat -t
scheduler is running
system default destination: laserjet2200
device for laserjet2200: hp:/usb/HP_LaserJet_2200?device=/dev/usb/lp0
laserjet2200 accepting requests since Jan 01 00:00
printer laserjet2200 now printing laserjet2200-1.  enabled since Jan 01 00:00
laserjet2200-1          root             78848   �[��
Comment 10 Klaus Singvogel 2005-09-02 10:18:17 UTC
Yes, please create one for me. 
For account creation data, use private communication please. 
Comment 11 Andreas Klein 2005-09-02 10:26:07 UTC
I have sent you the account information.
Comment 12 Klaus Singvogel 2005-09-02 12:37:31 UTC
Seems, I can reproduce it. It's somehow related to the locale. 
 
Watch this (and note that it's LC_TIME and not LC_CTIME. :) again my mistake) 
------------------------------------------------------------------------------ 
pluto:~ # env LC_TIME=en_US.UTF-8 lpstat -t 
scheduler is running 
system default destination: laserjet2200 
device for laserjet2200: hp:/usb/HP_LaserJet_2200?device=/dev/usb/lp0 
laserjet2200 accepting requests since Jan 01 00:00 
printer laserjet2200 disabled since Jan 01 00:00 - 
        Paused 
laserjet2200-3          kssingvo          1024   ž¿ 
laserjet2200-4          kssingvo         78848   ž¿ 
------------------------------------------------------------------------------ 
pluto:~ # env LC_TIME=en_GB.UTF-8 lpstat -t 
scheduler is running 
system default destination: laserjet2200 
device for laserjet2200: hp:/usb/HP_LaserJet_2200?device=/dev/usb/lp0 
laserjet2200 accepting requests since Jan 01 00:00 
printer laserjet2200 disabled since Jan 01 00:00 - 
        Paused 
laserjet2200-3          kssingvo          1024   Fri 02 Sep 2005 12:52:06 CEST 
laserjet2200-4          kssingvo         78848   Fri 02 Sep 2005 13:17:41 CEST 
------------------------------------------------------------------------------ 
Comment 13 Klaus Singvogel 2005-09-02 12:42:17 UTC
Only those locale settings seem to produce a problem, which are listed by: 
   ls -d /usr/X11R6/lib/X11/locale/*.UTF-8 
(exception: pt_BR.UTF-8, and th_TH.UTF-8) 
Comment 14 Klaus Singvogel 2005-09-02 14:07:38 UTC
fixed in next version.