Bug 383274 - failure printing via CUPS when document name contains non-ASCII characters
Summary: failure printing via CUPS when document name contains non-ASCII characters
Status: RESOLVED DUPLICATE of bug 364809
Alias: None
Product: okular
Classification: Applications
Component: printing (show other bugs)
Version: 0.26.1
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-08 13:17 UTC by ralfixx
Modified: 2017-08-08 20:15 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ralfixx 2017-08-08 13:17:36 UTC
OS Opensuse 42.2 Leap, latest patches applied.
  rpm -q --whatprovides /usr/bin/okular
  okular-16.08.2-1.1.x86_64

  okular --version
  Qt: 4.8.6
  KDE Development Platform: 4.14.25
  Okular: 0.26.1

When a PDF document contains Umlauts in the print job name, printing via CUPS fails with an error message in /var/log/cups/error_log:

Create-Job client-error-attributes-or-values-not-supported: Bad job-name value: "job-name": Bad name value "Allgemeine Geschäftsbedingungen für den elektronischen Geschäftsverkehr" - bad UTF-8 sequence (RFC 2911 section 4.1.2).
[Client 18] Returning IPP client-error-attributes-or-values-not-supported for Create-Job (ipp://localhost:631/printers/kopierer) from localhost

The problem seems to be that the Umlauts in there are not UTF-8 encoded.
Since I have no control over the job name (filename is e.g. x.pdf)

Printing the same document via e.g. evince succeeds:
[Job 51] job-name="51 - Allgemeine Geschäftsbedingungen für den elektronischen Geschäftsverkehr"

Here the Umlauts seem to be properly UTF-8 encoded.
Comment 1 Albert Astals Cid 2017-08-08 20:15:38 UTC

*** This bug has been marked as a duplicate of bug 364809 ***