on ``` distro Name: Fedora Linux 41 (Forty One) Version: 41 Codename: ``` with installed ``` rpm -qa | grep -Ei "gutenprint|cups" | sort cups-2.4.11-9.fc41.x86_64 cups-browsed-2.1.0-1.fc41.x86_64 cups-client-2.4.11-9.fc41.x86_64 cups-devel-2.4.11-9.fc41.x86_64 cups-filesystem-2.4.11-9.fc41.noarch cups-filters-2.0.1-3.fc41.x86_64 cups-filters-driverless-2.0.1-3.fc41.x86_64 cups-ipptool-2.4.11-9.fc41.x86_64 cups-libs-2.4.11-9.fc41.x86_64 gutenprint-5.3.5-3.fc41.x86_64 gutenprint-cups-5.3.5-3.fc41.x86_64 gutenprint-libs-5.3.5-3.fc41.x86_64 libcupsfilters-2.1.1-1.fc41.x86_64 ``` attempts to print locally now fail with "The PPD version (5.3.4) is not compatible with Gutenprint 5.3.5. Please run `/usr/sbin/cups-genppdupdate' as administrator." where ``` rpm -q --whatprovides /usr/sbin/cups-genppdupdate gutenprint-cups-5.3.5-3.fc41.x86_64 ``` on exec ``` /usr/sbin/cups-genppdupdate Traceback (most recent call last): File "/usr/sbin/cups-genppdupdate", line 1078, in <module> status = update_ppd (ppd_file) File "/usr/sbin/cups-genppdupdate", line 439, in update_ppd (ndt, nopt, nres, ndef, source_data) = get_ppd_data (source_fd, ~~~~~~~~~~~~~^^^^^^^^^^^ 1, 1, 1, 1, 1) ^^^^^^^^^^^^^^ File "/usr/sbin/cups-genppdupdate", line 711, in get_ppd_data line = fh.readline () File "<frozen codecs>", line 325, in decode UnicodeDecodeError: 'utf-8' codec can't decode bytes in position 2063-2064: invalid continuation byte ``` Reproducible: Always
downgrade 5.3.5 -> 5.3.4 rpm -qa | grep gutenprint gutenprint-libs-5.3.4-3.fc41.x86_64 gutenprint-5.3.4-3.fc41.x86_64 gutenprint-cups-5.3.4-3.fc41.x86_64 from fork/build @ https://src.fedoraproject.org/fork/pgfed/rpms/gutenprint/commits/f41 https://copr.fedorainfracloud.org/coprs/pgfed/gutenprint/ cures the problem -- printing OK.
and, w/ 5.3.4, e.g. /usr/sbin/cups-genppdupdate Updated /etc/cups/ppd/HPLJ_5200.ppd using gutenprint.5.3://hp-lj_5200/expert Updated 1 PPD file Restart cupsd for the changes to take effect.
Hi, thank you for the report! I can reproduce the issue and I'm trying to figure out the reason why the python script fails - it looks like the driver gutenprint.5.3 now generates wrong encoded data - when I open the PPD generated by it, I see incorrect symbols for some translations, which worked in 5.3.4. Debugging it further...
Ok, get it - Georgian translations, which are now new in 5.3.5, cannot be decoded as UTF-8 when they are in PPD generated by gutenprint.5.3. Gutenprint includes all translation strings into PPD when creating it, so when Georgian translations are removed, the script works. In upstream they use Perl script as cups-genppdupdate, which does not show the issue (although PPD file shows weird symbols, but they work in f.e. Evince dialog) and we have rewritten this script to Python in the past to avoid having Perl in the default image, so it is a downstream issue. I've checked Python docs and there is possibility to influence what to do when UnicodeError happens - one of them is 'replace', which I tried to use for TextWrapper objects and it works - translations in PPD are readable in Vim and in Evince print dialog, so let's go with it for now.
> cannot be decoded as UTF-8 when they are in PPD generated by gutenprint.5.3 fwiw, 2 F41 machines, cups/gutenprint clean-installed. one v5.3.4, one v5.3.5 on exec of https://pastebin.com/raw/TPTu4tmR generated ppd with 5.3.5, https://is.gd/6nnD6v
Yes, 5.3.4 does not have Georgian translations.
Committed in rawhide for now, I will build the fix tomorrow for all branches. For the moment, F41 scratch build https://koji.fedoraproject.org/koji/taskinfo?taskID=130809556
confirmed, own f41 copr build from updated rawhide src rpm -qa | grep gutenprint gutenprint-libs-5.3.5-4.fc41.x86_64 gutenprint-5.3.5-4.fc41.x86_64 gutenprint-cups-5.3.5-4.fc41.x86_64 systemctl restart cups -> printing OK & /usr/sbin/cups-genppdupdate Updated /etc/cups/ppd/HPLJ_4300.ppd using gutenprint.5.3://hp-lj_4300/expert Updated 1 PPD file Restart cupsd for the changes to take effect.
FEDORA-2025-245c787fab (gutenprint-5.3.5-4.fc43) has been submitted as an update to Fedora 43. https://bodhi.fedoraproject.org/updates/FEDORA-2025-245c787fab
FEDORA-2025-245c787fab (gutenprint-5.3.5-4.fc43) has been pushed to the Fedora 43 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-2025-b9233395f4 (gutenprint-5.3.5-4.fc42) has been submitted as an update to Fedora 42. https://bodhi.fedoraproject.org/updates/FEDORA-2025-b9233395f4
FEDORA-2025-0ba91b1ef6 (gutenprint-5.3.5-4.fc41) has been submitted as an update to Fedora 41. https://bodhi.fedoraproject.org/updates/FEDORA-2025-0ba91b1ef6
FEDORA-2025-77a9ae0dc1 (gutenprint-5.3.5-4.fc40) has been submitted as an update to Fedora 40. https://bodhi.fedoraproject.org/updates/FEDORA-2025-77a9ae0dc1
FEDORA-2025-b9233395f4 has been pushed to the Fedora 42 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-b9233395f4` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-b9233395f4 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2025-0ba91b1ef6 has been pushed to the Fedora 41 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-0ba91b1ef6` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-0ba91b1ef6 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2025-77a9ae0dc1 has been pushed to the Fedora 40 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-77a9ae0dc1` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-77a9ae0dc1 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2025-b9233395f4 (gutenprint-5.3.5-4.fc42) has been pushed to the Fedora 42 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-2025-0ba91b1ef6 (gutenprint-5.3.5-4.fc41) has been pushed to the Fedora 41 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-2025-d3cac232ac has been pushed to the Fedora 40 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-d3cac232ac` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-d3cac232ac See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2025-d3cac232ac (gutenprint-5.3.5-5.fc40) has been pushed to the Fedora 40 stable repository. If problem still persists, please make note of it in this bug report.