texttopdf failed when I print Czech text with lp command

Bug #605479 reported by Naruhiko Ogasawara
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cups (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: cups

When I printed attached text file contains Czech character, it cause error in Print Job Manager, and print nothing.
$ lp motl.txt

CUPS web UI says:
--
stopped
"/usr/lib/cups/filter/texttopdf failed"
--
so it seems a problem of texttopdf.
I received the issue with KonicaMinolta bizhub c252 (Postscript printer).
Then I reproduced with FileDevice and OpenPrinting Generic PCL6 PPD and get same result.
These indicate this issue has no relation of filters or backends, just a texttopdf problem.

And I heard another Czech text file created with Vim is fine, so this problem might cause some wrong character in the attached text, but if so, I think texttopdf should ignore such kind of characters and just put error log.

I use Ubuntu Lucid, but this problem also occur with Debian Sid.

---------------

$ lsb_release -rd
Description: Ubuntu 10.04 LTS
Release: 10.04

$ apt-cache policy cups
cups:
  Installed: 1.4.3-1ubuntu1.2
  Candidate: 1.4.3-1ubuntu1.2
  Version table:
 *** 1.4.3-1ubuntu1.2 0
        500 http://jp.archive.ubuntu.com/ubuntu/ lucid-updates/main Packages
        500 http://security.ubuntu.com/ubuntu/ lucid-security/main Packages
        100 /var/lib/dpkg/status
     1.4.3-1 0
        500 http://jp.archive.ubuntu.com/ubuntu/ lucid/main Packages

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

On Maverick I get a segfault if I run

/usr/lib/cups/filter/texttopdf 1 1 1 1 "" motl.txt > motl.pdf

I get a segfault and motl.pdf stays empty.

I attach my /usr/share/cups/charsets/pdf.utf-8 file.

Changed in cups (Ubuntu):
status: New → Fix Committed
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Fix committed to Debian's BZR repository of CUPS. The fix will appear in Maverick with the next CUPS package.

Thanks to original author Tobias Hoffmann for the quick fix.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package cups - 1.4.4-2

---------------
cups (1.4.4-2) unstable; urgency=low

  [ Till Kamppeter ]
  * debian/local/filters/pdf-filters/filter/fontembed/bitset.h,
    debian/local/filters/pdf-filters/filter/fontembed/sfnt.c,
    debian/local/filters/pdf-filters/filter/texttopdf.c: Fixed bug with
    subsetting certain composite chars (LP: #605479).
  * debian/local/acroread.conf, debian/local/pdftops.conf, debian/cups.install:
    Removed /etc/cups/acroread.conf and /etc/cups/pdftops.conf. These two files
    were used by the alternative pdftops filter from Helge Blischke. As we
    switched back to the original pdftops filter these files are not needed any
    more (LP: #605564).
  * debian/local/filters/cpdftocps: The PostScript level from the PPD file
    was not used, but always the default value "2" instead. This made Xerox
    color laser printers crash on some files. Thanks to Roel van Os for the
    patch (LP: #600972).

  [ Martin Pitt ]
  * debian/control: Reintroduce the libcupsys2{-dev} Provides:, since some
    third-party printer drivers still depend on them. (LP: #433311)
  * debian/control: Have libcups2 break older cups versions. (Closes: #588643)
 -- Martin Pitt <email address hidden> Sat, 24 Jul 2010 19:38:50 +0200

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.