Public bug reported:

bannertopdf in cups-filters can't handle Japanese character because it
always select non-Japanese fontset; so if we use Japanese as a printer
location (or description?) in system-config-printer (and might be GNOME3
printer setting in Saucy), the result of test print is incorrect.


How to reproduce:

1. Install cups-pdf package to use CUPS-PDF printer
2. Create two printer queue with CUPS-PDF
    A) printer name: CUPS-PDF
         description: English CUPS PDF
         location: my-machine
    B) printer name: CUPS-PDF-with-JPN
         description: 日本語のCUPS PDF
         location: 私のマシン

We'll repeat following operation from 2 to 8 with printer A) and B).

2. Stop cups spooler by cupsdisable
3. Do test print in system-config-printer
4. Check spool file (it might be a pdf banner file; totally same result)

$ sudo cat /var/spool/cups/d00016-001
#PDF-BANNER
Template default-testpage.pdf
Show printer-name printer-info printer-location printer-make-and-model 
printer-driver-name printer-driver-version paper-size imageable-area job-id 
options time-at-creation time-at-processing

# Check that we have printer-location

5. Restart cups spooler by cupsenable
6. Check the %HOME%/PDF directory. You can see Test_Page.pdf (attached as 
_EN.pdf and _JA.pdf).
7. Check rendering result using Evince (screen capture is attached below).
   In case of printer B), Description and Location have wrong characters.

$ evince Test_Page.pdf &

8. Check which font is used in the Test_Page.pdf

$ pdffonts Test_Page.pdf 
name                                 type              encoding         emb sub 
uni object ID
------------------------------------ ----------------- ---------------- --- --- 
--- ---------
YJYKPU+Courier                       Type 1C           Custom           yes yes 
no       8  0
ZFJGVO+Ubuntu-Medium                 TrueType          WinAnsi          yes yes 
yes     11  0

It's not support non-ascii characters.


NOTE: I'm not sure about bannertopdf itself should support non-ascii
characters, but we already accept non-ascii characters as description
and location, so we also should print right in test page.

ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: cups-filters 1.0.34-0ubuntu1.1
ProcVersionSignature: Ubuntu 3.8.0-25.37-generic 3.8.13
Uname: Linux 3.8.0-25-generic i686
ApportVersion: 2.9.2-0ubuntu8.1
Architecture: i386
Date: Tue Jul  2 22:05:17 2013
InstallationDate: Installed on 2013-01-31 (151 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Alpha i386 (20130128)
Lpstat:
 device for CUPS-PDF-with-JPN: cups-pdf:/
 device for Generic-CUPS-PDF-Printer: cups-pdf:/
 device for RICOH-IPSiO-SP-4000: 
usb://RICOH/IPSiO%20SP%204000?serial=47T3-213880
 device for TEST: ///tmp/test.prn
 device for TEST_UIConstraints: ///tmp/test.prn
MachineType: LENOVO 30515EJ
MarkForUpload: True
Papersize: a4
PpdFiles:
 TEST: Ricoh Aficio SP C831DN PS
 CUPS-PDF-with-JPN: Generic CUPS-PDF Printer
 Generic-CUPS-PDF-Printer: Generic CUPS-PDF Printer
 TEST_UIConstraints: Ricoh Aficio SP C831DN PS
 RICOH-IPSiO-SP-4000: Ricoh RPDL IV Laser Printer Foomatic/rpdl (recommended)
ProcEnviron:
 TERM=screen-bce
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=ja_JP.UTF-8
 SHELL=/bin/zsh
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.8.0-25-generic 
root=UUID=fc52b77c-a50f-41fd-9731-b7f8b083b880 ro quiet splash vt.handoff=7
SourcePackage: cups-filters
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 06/20/2011
dmi.bios.vendor: LENOVO
dmi.bios.version: 8RET26WW (1.08 )
dmi.board.asset.tag: Not Available
dmi.board.name: 30515EJ
dmi.board.vendor: LENOVO
dmi.board.version: Not Available
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: Not Available
dmi.modalias: 
dmi:bvnLENOVO:bvr8RET26WW(1.08):bd06/20/2011:svnLENOVO:pn30515EJ:pvrThinkPadX120e:rvnLENOVO:rn30515EJ:rvrNotAvailable:cvnLENOVO:ct10:cvrNotAvailable:
dmi.product.name: 30515EJ
dmi.product.version: ThinkPad X120e
dmi.sys.vendor: LENOVO

** Affects: cups-filters (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: apport-bug i386 raring

** Attachment added: "Results of CUPS-PDF test print PDFs and screenshots. 
Description is in list.txt file."
   
https://bugs.launchpad.net/bugs/1196986/+attachment/3721866/+files/bannertopdf-japanese-bug.tar.xz

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1196986

Title:
  bannertopdf can't handle Japanese characters

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cups-filters/+bug/1196986/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to