Red Hat Bugzilla – Bug 681836
lpstat bug with ASCII encoding, LANG=en_US.ASCII lpstat -h localhost -s
Last modified: 2018-04-04 08:13:37 EDT
Description of problem: Hi, I've found unpeasant problem, I've had created some printers (not important, it is enought to have any) I found it whne testing bug https://bugzilla.redhat.com/show_bug.cgi?id=642448 using ASCII as an enconfing of chars causes that nothing is writen to stdout (for me it seems that cups somewhere match ASCII string and then go thru another way) Version-Release number of selected component (if applicable): # rpm -qa cups\* cups-1.4.2-39.el6.x86_64 cups-libs-1.4.2-39.el6.x86_64 How reproducible: 100% Steps to Reproduce: 1. service cups start 2. install any printers 3. LANG=en_US.ASCII lpstat -h localhost -s Actual results: ==nothing on output== Expected results: no system default destination device for file: /tmp/xxxxx.out device for tofile: socket://localhost:12000 Additional info: any other string for enconding provide same proper output: # lpstat -h x86-64-v02 -s # LANG=en_US.ISO-8859-1 lpstat -h x86-64-v02 -s # LANG=en_US.US-ASCII lpstat -h x86-64-v02 -s # LANG=en_US.SSS lpstat -h x86-64-v02 -s # LANG=uss.enterprise lpstat -h x86-64-v02 -s strace ends with: open("/usr/share/cups/charmaps/us-ascii.txt", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/share/cups/charmaps/us-ascii.txt", O_RDONLY) = -1 ENOENT (No such file or directory) exit_group(0) = ?
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHSA-2011-1635.html