lpq and lpstat output empty lines only

Bug #953321 reported by Ulf Rompe
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cups (Ubuntu)
Fix Released
Medium
Martin Pitt

Bug Description

After upgrade from Oneiric to Precise Beta the commands "lpq" and "lpstat" output nothing but empty lines. That is, "lpq" gives two empty lines, "lpstat -t" gives 12 empty lines.

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

This is already fixed upstream:

http://www.cups.org/str.php?L4033

Changed in cups (Ubuntu):
status: New → Triaged
importance: Undecided → High
Revision history for this message
Ulf Rompe (rompe) wrote :

I just noticed this is a locale problem. "LANG=C lpq" works correctly, "LANG=C lpstat -t" too.

Revision history for this message
Ulf Rompe (rompe) wrote :

Thanks, Till! For the time being I can live with the LANG=C workaround.

Revision history for this message
Ulf Rompe (rompe) wrote :

BTW: It seems like translations are applied twice. For example, usage() is defined like this in lpq.c:

666 static void
667 usage(void)
668 {
669 _cupsLangPuts(stderr,
670 _("Usage: lpq [-P dest] [-U username] [-h hostname[:port]] "
671 "[-l] [+interval]c"));
672 exit(1);
673 }

If I remove the _() around the string, I would expect the string to be output as is, but the translation is still applied by _cupsLangPuts().

Martin Pitt (pitti)
Changed in cups (Ubuntu):
assignee: nobody → Martin Pitt (pitti)
importance: High → Medium
status: Triaged → In Progress
Martin Pitt (pitti)
Changed in cups (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package cups - 1.5.2-7

---------------
cups (1.5.2-7) unstable; urgency=low

  * Add fix-empty-translations.patch: Do not translate msgids to empty
    strings. Backported from upstream SVN. (LP: #953321)
  * Add test-i18n-nonlinux.patch: Do not run the CUPS_EUC_JP test case on
    BSD/Hurd either, as glibc's iconv behavior is different than what the test
    expects. (Closes: #662996)
  * debian/local/apparmor-profile: Allow gs to read /proc/*/auxv; it's
    harmless information. (LP: #936629)
  * debian/cups.dirs, debian/rules: Disable /usr/local/share/ppd/ directory
    for now, until dh_usrlocal stops failing on those.
 -- Martin Pitt <email address hidden> Tue, 13 Mar 2012 11:46:09 +0100

Changed in cups (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.