[Okular-devel] [okular] [Bug 364809] New: can't print file that contains invalid UTF-8 sequence
via KDE Bugzilla
bugzilla_noreply at kde.org
Mon Jun 27 11:09:28 UTC 2016
https://bugs.kde.org/show_bug.cgi?id=364809
Bug ID: 364809
Summary: can't print file that contains invalid UTF-8 sequence
Product: okular
Version: 0.25.0
Platform: Other
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: printing
Assignee: okular-devel at kde.org
Reporter: peter.maloney at brockmann-consult.de
maybe 2 related bugs reported together
(1) can't open a file with an invalid utf8 character in it, even though it's a
valid filename
okular 'kindergeld'$'\303\244''nderung3.pdf'
error window pops up "Could not open kindergeldänderung3.pdf"
can work around this by renaming the file, or symlinking to it
the file is available at this link, and I'll try attaching it too:
https://www.arbeitsagentur.de/web/wcm/idc/groups/public/documents/webdatei/mdaw/mdc0/~edisp/l6019022dstbai385303.pdf
(2) can't print the file because the "job name" it gives the printer has an
invalid utf8 character
on console, you can see output like:
lpr: Bad job-name value: "job-name": Bad name value
"Ver�nderungsmitteilung" - bad UTF-8 sequence (RFC 2911 section 4.1.2).
the command it uses (obtained by replacing the lpr command with a script
that logs it)
/usr/bin/lpr -P okidoki -#1 -J Ver�nderungsmitteilung -r
/tmp/kde-peter/okularH13352.ps
And while that's true that the sequence is invalid UTF-8, I don't really care
what the job name is, and would rather it just fake it and print; it wouldn't
affect the hard copy. And okular set the job name... it doesn't give me control
of it. I wouldn't even know what the job name was to use it since it doesn't
match the title or filename or anything.
So my workaround was to write a wrapper script that uses iconv to check args
and replaces invalid ones with $RANDOM. And that works.
Reproducible: Always
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Okular-devel
mailing list