Bug 797570

Summary: "LANG=de_DE.UTF-8 lpstat -t" displays empty lines, but "LANG=C lpstat -t" works (cups-1.5.2-1.fc16)
Product: [Fedora] Fedora Reporter: Edgar Hoch <edgar.hoch>
Component: cupsAssignee: Tim Waugh <twaugh>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 16CC: franco.violi, jpopelka, twaugh
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: cups-1.5.2-6.fc17 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-03-24 00:25:53 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Edgar Hoch 2012-02-26 19:14:00 UTC
Description of problem:
My default locale setting is LANG=de_DE.UTF-8 .

Since at least today, but maybe since upgrade to cups-1.5.2-1.fc16,
"lpstat -t" displays empty lines (the number of lines seems to be the same as before, but they are empty).

But "LANG=C lpstat -t" works fine (displays the printer lines).
Also works fine: "LANG=en lpstat -t", "LANG=en_US.UTF-8 lpstat -t".

But these displays empty lines: "LANG=de lpstat -t", "LANG=de_DE.UTF-8 lpstat -t", "LANG=fr lpstat -t".

It seems that any language different from english shows empty lines. It seems that the locale translations are not found???


Version-Release number of selected component (if applicable):
cups-1.5.2-1.fc16.x86_64

How reproducible:
Always.

Steps to Reproduce:
1. Set the locale (e.g. environment LANG) to C or an english language.
   Then "lpstat -t" displays the lines of the discovered network printers.
2. Set the locale (e.g. environment LANG) to a language not english (e.g. german, frensh, etc.).
   Then "lpstat -t" display empty lines of the discovered network printers (the line count is the same).

Comment 1 Jiri Popelka 2012-02-27 11:55:44 UTC
Yes, something is wrong with the po files (/usr/share/locale/<lang>/cups_<lang>.po) because copying the po files from cups-1.5.0 fixes the problem.

Comment 2 Jiri Popelka 2012-02-27 19:08:13 UTC
Seems that the translations are simply missing.

cups-1.5.0/locale/cups_de.po:
msgid "printer %s is idle.  enabled since %s\n"
msgstr "Drucker ā€ž%sā€œ ist inaktiv; aktiviert seit %s\n"

msgid "%s/%s accepting requests since %s\n"
msgstr "%s/%s akzeptiert Anfragen seit %s\n

msgid "system default destination: %s\n"
msgstr "System-Standardzielort: %s\n"

cups-1.5.2/locale/cups_de.po
msgid "printer %s is idle.  enabled since %s"
msgstr ""

msgid "%s accepting requests since %s"
msgstr ""

msgid "system default destination: %s"
msgstr ""

#~ msgid "%s accepting requests since %s\n"
#~ msgstr "%s akzeptiert Anfragen seit %s\n"

#~ msgid "system default destination: %s\n"
#~ msgstr "System-Standardzielort: %s\n"

--- and so on ...

Comment 3 Jiri Popelka 2012-02-28 10:27:47 UTC
Reported upstream.

Comment 4 Jiri Popelka 2012-02-28 11:26:07 UTC
Could you try this build ?
https://koji.fedoraproject.org/koji/taskinfo?taskID=3827307

Download all rpms into one directory and update with:
su -c 'yum --nogpgcheck localupdate *.rpm'

Comment 5 Tim Waugh 2012-03-02 11:13:25 UTC
*** Bug 799217 has been marked as a duplicate of this bug. ***

Comment 6 Fedora Update System 2012-03-14 17:03:08 UTC
cups-1.5.2-6.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/cups-1.5.2-6.fc17

Comment 7 Fedora Update System 2012-03-14 17:09:32 UTC
cups-1.5.2-6.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/cups-1.5.2-6.fc16

Comment 8 Fedora Update System 2012-03-16 02:41:17 UTC
Package cups-1.5.2-6.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing cups-1.5.2-6.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-3811/cups-1.5.2-6.fc17
then log in and leave karma (feedback).

Comment 9 Edgar Hoch 2012-03-17 20:43:11 UTC
(In reply to comment #7)
> cups-1.5.2-6.fc16 has been submitted as an update for Fedora 16.
> https://admin.fedoraproject.org/updates/cups-1.5.2-6.fc16

This version fixes the problem.

Thanks!

Comment 10 Fedora Update System 2012-03-24 00:25:53 UTC
cups-1.5.2-6.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 11 Fedora Update System 2012-04-12 03:38:56 UTC
cups-1.5.2-6.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.