bannertopdf can't handle Japanese characters
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cups-filters (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
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-
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
location: my-machine
B) printer name: CUPS-PDF-with-JPN
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-
4. Check spool file (it might be a pdf banner file; totally same result)
$ sudo cat /var/spool/
#PDF-BANNER
Template default-
Show printer-name printer-info printer-location printer-
# 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+
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
ProcVersionSign
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-
device for RICOH-IPSiO-
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-
TEST_UIConstra
RICOH-
ProcEnviron:
TERM=screen-bce
PATH=(custom, no user)
XDG_RUNTIME_
LANG=ja_JP.UTF-8
SHELL=/bin/zsh
ProcKernelCmdLine: BOOT_IMAGE=
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.
dmi.board.name: 30515EJ
dmi.board.vendor: LENOVO
dmi.board.version: Not Available
dmi.chassis.
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.
dmi.modalias: dmi:bvnLENOVO:
dmi.product.name: 30515EJ
dmi.product.
dmi.sys.vendor: LENOVO
Lars, can you have a look into this problem? Thanks.