Package: cups
Version: 2.4.10-3+deb13u2

I use GNOME with German language settings.
When I wish to print to the same printer through any of the printer names 
“HP-OfficeJet-Pro-8130e-series” or “HP-OfficeJet-Pro-8130e-series_xxxxxx_USB” 
and adjust the color mode in the drop-down menu in the color tab “Farbe”, I see 
“Geräte-Grau”, which should actually read “Geräte-Grau”.  This seems to be an 
encoding problem: “ä” (small Latin A with umlaut) in Unicode is U+00E4, which 
is 1110 0100 in binary, which transforms to 11000011 10100100 in binary in 
UTF-8, which is C3 A4 in hexadecimal in UTF-8, which is “ä” (capital Latin A 
with tilde, currency sign) in ISO/IEC 8859-1.

The relevant .ppd files seem to have "Geräte" correctly in UTF-8:

# rgrep --color -C1 "Ger.*Grau" /etc/cups/ppd/*HP*
/etc/cups/ppd/HP_OfficeJet_Pro_8130e_series_xxxxxx.ppd-*ColorModel DeviceGray: 
"<</cupsColorSpace 0/cupsBitsPerColor 8/cupsColorOrder 0/cupsCompression 
0>>setpagedevice"
/etc/cups/ppd/HP_OfficeJet_Pro_8130e_series_xxxxxx.ppd:*de_DE.ColorModel 
DeviceGray/Geräte-Grau: ""
/etc/cups/ppd/HP_OfficeJet_Pro_8130e_series_xxxxxx.ppd-*ColorModel DeviceRGB: 
"<</cupsColorSpace 1/cupsBitsPerColor 8/cupsColorOrder 0/cupsCompression 
0>>setpagedevice"
--
/etc/cups/ppd/HP_OfficeJet_Pro_8130e_series_xxxxxx_USB.ppd-*ColorModel Gray/Monochrome: 
"<</cupsColorSpace 18/cupsBitsPerColor 8/cupsColorOrder 0/cupsCompression 
0>>setpagedevice"
/etc/cups/ppd/HP_OfficeJet_Pro_8130e_series_xxxxxx_USB.ppd:*ColorModel DeviceGray/Geräte-Grau: 
"<</cupsColorSpace 0/cupsBitsPerColor 8/cupsColorOrder 0/cupsCompression 
0>>setpagedevice"
/etc/cups/ppd/HP_OfficeJet_Pro_8130e_series_xxxxxx_USB.ppd-*ColorModel DeviceRGB/Geräte-RGB: 
"<</cupsColorSpace 1/cupsBitsPerColor 8/cupsColorOrder 0/cupsCompression 
0>>setpagedevice"
--
/etc/cups/ppd/HP-OfficeJet-Pro-8130e-series.ppd-*ColorModel Gray/Monochrome: 
"<</cupsColorSpace 18/cupsBitsPerColor 8/cupsColorOrder 0/cupsCompression 
0>>setpagedevice"
/etc/cups/ppd/HP-OfficeJet-Pro-8130e-series.ppd:*ColorModel DeviceGray/Geräte-Grau: 
"<</cupsColorSpace 0/cupsBitsPerColor 8/cupsColorOrder 0/cupsCompression 
0>>setpagedevice"
/etc/cups/ppd/HP-OfficeJet-Pro-8130e-series.ppd-*ColorModel DeviceRGB/Geräte-RGB: 
"<</cupsColorSpace 1/cupsBitsPerColor 8/cupsColorOrder 0/cupsCompression 
0>>setpagedevice"
--
/etc/cups/ppd/HP-OfficeJet-Pro-8130e-series.ppd.O-*ColorModel Gray/Monochrome: 
"<</cupsColorSpace 18/cupsBitsPerColor 8/cupsColorOrder 0/cupsCompression 
0>>setpagedevice"
/etc/cups/ppd/HP-OfficeJet-Pro-8130e-series.ppd.O:*ColorModel DeviceGray/Geräte-Grau: 
"<</cupsColorSpace 0/cupsBitsPerColor 8/cupsColorOrder 0/cupsCompression 
0>>setpagedevice"
/etc/cups/ppd/HP-OfficeJet-Pro-8130e-series.ppd.O-*ColorModel DeviceRGB/Geräte-RGB: 
"<</cupsColorSpace 1/cupsBitsPerColor 8/cupsColorOrder 0/cupsCompression 
0>>setpagedevice"
# uchardet /etc/cups/ppd/*HP*
/etc/cups/ppd/HP-HP-OfficeJet-Pro-8130e-series.ppd: ASCII
/etc/cups/ppd/HP_OfficeJet_Pro_8130e_series_xxxxxx.ppd: UTF-8
/etc/cups/ppd/HP_OfficeJet_Pro_8130e_series_xxxxxx_USB.ppd: UTF-8
/etc/cups/ppd/HP-OfficeJet-Pro-8130e-series.ppd: UTF-8
/etc/cups/ppd/HP-OfficeJet-Pro-8130e-series.ppd.O: UTF-8

The problem is not universal for all drivers/connections of the same printer: 
“HP-HP-OfficeJet-Pro-8130e-series” doesn't have the gray option at all, and 
when using “HP-OfficeJet-Pro-8130e-series_xxxxxx”, the print dialog correctly 
shows “Geräte-Grau”.

Please fix the encoding issue.

Gratefully!

Reply via email to