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-de...@kde.org Reporter: peter.malo...@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 watching all bug changes.