[cups.bugs] [HIGH] STR #4179: Cups or LPD filters UTF-8 box drawing characters.
Jason
jpvoodoo at hotmail.com
Sat Sep 1 11:22:41 PDT 2012
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR New]
Trying to use UTF-8 "box drawing" characters in python redirected to lpr
Ex:
┏━━━━━━━━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━━━┓
┃ Denomination ┃ Qty ┃ Amount ┃
┣━━━━━━━━━━━━━━━━┻━━━━━━━━━┻━━━━━━━━━━━┫
┃ Hundreds 0 $0.00 ┃
┃ Fifties 0 $0.00 ┃
┃ Twenties 0 $0.00 ┃
┃ Tens 0 $0.00 ┃
┃ Fives 0 $0.00 ┃
┃ Twos 0 $0.00 ┃
┃ Singles 0 $0.00 ┃
┃ Half Dollars 0 $0.00 ┃
┃ Quarters 0 $0.00 ┃
┃ Dimes 0 $0.00 ┃
┃ Nickels 0 $0.00 ┃
┃ Pennies 0 $0.00 ┃
┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫
┃ Total Cash: $0.00 ┃
┃ Less Bank: $0.00 ┃
┃ ──────── ┃
┃ Ending Balance: $0.00 ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
ex: lp utf_file.txt
The box characters display correctly on my terminal but don't appear when
printed. this is whether lp is called directly from my program or when a
text file contains characters like these:
"┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛"
python command to draw it is:
print u'\u2517'+u'\u2501' * 38 + u'\u251B'+"\n"
Normal ascii characters do appear.
Printer is an HP Photosmart 5510 Wireless using HP-setup via jetdirect
port. Cups is installed locally on the PC.
Printer is not attached to the PC and has no USB support. I understand
that CUPs supports UTF-8 by default.
This may well not even be a bug within cups itself. It could even be the
printer or my setup. Any advice would be appreciated, but I understand I'm
probably the only fool who wants to draw unicode boxes to a line printer.
Thank you for your time.
Link: http://www.cups.org/str.php?L4179
Version: 1.5.0
More information about the cups
mailing list