[okular] [Bug 364809] can't print file that contains invalid UTF-8 sequence
https://bugs.kde.org/show_bug.cgi?id=364809 peter.malo...@brockmann-consult.de changed: What|Removed |Added Resolution|WAITINGFORINFO |WORKSFORME Status|NEEDSINFO |RESOLVED --- Comment #20 from peter.malo...@brockmann-consult.de --- so looks like it works fine today... could have been fixed 2 years ago since this report is so old (don't know if cups fixed it, or okular/KDE did) [pid 27359] execve("/usr/bin/lpr", ["/usr/bin/lpr", "-P", "okidoki", "-#1", "-J", "Ver\303\244nderungsmitteilung", "-o", "media=A4", "-o", "portrait", "-o", "sides=one-sided", "-o", "outputorder=normal", "-o", "Collate=True", "-o", "page-left=13", "-o", "page-top=13", "-o", "page-right=13", "-o", "page-bottom=13", "-o", "fit-to-page", "-o", "number-up=1", "-o", "number-up-layout=lrtb", "-o", "job-billing", ...], 0x7ffc868b9130 /* 60 vars */ cups-nosystemd 2.2.3-1 okular 18.08.1-3 Since there is no way to know who fixed it or whether a regression test has been added, I'll mark it WORKSFORME instead of FIXED. -- You are receiving this mail because: You are the assignee for the bug.
[okular] [Bug 364809] can't print file that contains invalid UTF-8 sequence
https://bugs.kde.org/show_bug.cgi?id=364809 Albert Astals Cid changed: What|Removed |Added Resolution|--- |WAITINGFORINFO Status|REPORTED|NEEDSINFO --- Comment #19 from Albert Astals Cid --- I'm sorry but no, i'm not just going to do stuff in latin1 just because you think something is wrong. You have to prove something is wrong, and AFAICS that has not happened. -- You are receiving this mail because: You are the assignee for the bug.
[okular] [Bug 364809] can't print file that contains invalid UTF-8 sequence
https://bugs.kde.org/show_bug.cgi?id=364809 --- Comment #17 from peter.malo...@brockmann-consult.de --- I don't know what info you are waiting for. Could you just work around the lpr problem by checking for valid UTF-8 and replacing invalid bits with "?" instead? Simply forbid sending invalid output to the lpr command's input. It's a good software development practice to "be generous with input and strict about output" And for the other problem about the filename, you can probably just avoid encoding/decoding the filename at all, just using it as latin1 / iso-8859-1 in your strings, which won't change anything. Opening files basically uses syscalls that work already, so you just have to avoid lossy conversions of this malformed character data. -- You are receiving this mail because: You are the assignee for the bug.
[okular] [Bug 364809] can't print file that contains invalid UTF-8 sequence
https://bugs.kde.org/show_bug.cgi?id=364809 Andrew Crouthamel changed: What|Removed |Added Keywords||triaged --- Comment #16 from Andrew Crouthamel --- Dear Bug Submitter, This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed. Thank you for helping us make KDE software even better for everyone! -- You are receiving this mail because: You are the assignee for the bug.
[okular] [Bug 364809] can't print file that contains invalid UTF-8 sequence
https://bugs.kde.org/show_bug.cgi?id=364809 Simon Andricchanged: What|Removed |Added CC||simonandr...@gmail.com -- You are receiving this mail because: You are the assignee for the bug.
[okular] [Bug 364809] can't print file that contains invalid UTF-8 sequence
https://bugs.kde.org/show_bug.cgi?id=364809 --- Comment #15 from ralf...@gmx.de --- Indeed. % unsetenv LC_ALL % locale LANG=de_DE.UTF-8 LC_CTYPE="de_DE.UTF-8" LC_NUMERIC=POSIX LC_TIME="de_DE.UTF-8" LC_COLLATE="de_DE.UTF-8" LC_MONETARY="de_DE.UTF-8" LC_MESSAGES="de_DE.UTF-8" LC_PAPER="de_DE.UTF-8" LC_NAME="de_DE.UTF-8" LC_ADDRESS="de_DE.UTF-8" LC_TELEPHONE="de_DE.UTF-8" LC_MEASUREMENT="de_DE.UTF-8" LC_IDENTIFICATION="de_DE.UTF-8" LC_ALL= % okular doc.pdf [prints ok] % setenv LC_ALL C % okular doc.pdf [error printing] I had set LC_ALL to C due to i18n issues in other programs. I can work around this via a wrapper script to okular unsetting LC_ALL. It seems somewhat unfortunate that there is no feedback at all when the printing fails, but that's life I suppose. As someone else mentioned, I really don't care what the print job name is, and I find it somewhat unfortunate to make it depend on some random stuff in the document. I hope this does not open up new code injection paths, like setting the job name inside the document to ';rm -rf /'. -- You are receiving this mail because: You are the assignee for the bug.
[okular] [Bug 364809] can't print file that contains invalid UTF-8 sequence
https://bugs.kde.org/show_bug.cgi?id=364809 --- Comment #14 from Luigi Toscano--- (In reply to ralfixx from comment #13) > Here is my locale (redirected from Bug-Id 383274) > > % locale > LANG=de_DE.UTF-8 > LC_CTYPE="C" > LC_NUMERIC="C" > LC_TIME="C" > LC_COLLATE="C" > LC_MONETARY="C" > LC_MESSAGES="C" > LC_PAPER="C" > LC_NAME="C" > LC_ADDRESS="C" > LC_TELEPHONE="C" > LC_MEASUREMENT="C" > LC_IDENTIFICATION="C" > LC_ALL=C That looks like the source of the issue. Try to unset LC_ALL (which should be fine unset) and see if the other LC_* are the same as LANG. If it does not work, please set LC_ALL to de_DE.UTF-8 too. -- You are receiving this mail because: You are the assignee for the bug.
[okular] [Bug 364809] can't print file that contains invalid UTF-8 sequence
https://bugs.kde.org/show_bug.cgi?id=364809 --- Comment #13 from ralf...@gmx.de --- Here is my locale (redirected from Bug-Id 383274) % locale LANG=de_DE.UTF-8 LC_CTYPE="C" LC_NUMERIC="C" LC_TIME="C" LC_COLLATE="C" LC_MONETARY="C" LC_MESSAGES="C" LC_PAPER="C" LC_NAME="C" LC_ADDRESS="C" LC_TELEPHONE="C" LC_MEASUREMENT="C" LC_IDENTIFICATION="C" LC_ALL=C % uname -a Linux panther 4.4.74-18.20-default #1 SMP Fri Jun 30 19:01:19 UTC 2017 (b5079b8) x86_64 x86_64 x86_64 GNU/Linux If required I could also provide the failing document. The "offending" job name is set inside this document somehow, the file name itself does not matter. -- You are receiving this mail because: You are the assignee for the bug.
[okular] [Bug 364809] can't print file that contains invalid UTF-8 sequence
https://bugs.kde.org/show_bug.cgi?id=364809 Albert Astals Cidchanged: What|Removed |Added CC||ralf...@gmx.de --- Comment #12 from Albert Astals Cid --- *** Bug 383274 has been marked as a duplicate of this bug. *** -- You are receiving this mail because: You are the assignee for the bug.
[okular] [Bug 364809] can't print file that contains invalid UTF-8 sequence
https://bugs.kde.org/show_bug.cgi?id=364809 --- Comment #11 from Florian E.J. Fruth--- I can't reproduce the problem today :( - doesn't matter what the locale says... -- You are receiving this mail because: You are the assignee for the bug.
[okular] [Bug 364809] can't print file that contains invalid UTF-8 sequence
https://bugs.kde.org/show_bug.cgi?id=364809 Luigi Toscanochanged: What|Removed |Added CC||luigi.tosc...@tiscali.it --- Comment #10 from Luigi Toscano --- (In reply to Florian E.J. Fruth from comment #9) > LANG= > LANGUAGE= > LC_CTYPE="POSIX" > LC_NUMERIC="POSIX" > LC_TIME="POSIX" > LC_COLLATE="POSIX" > LC_MONETARY="POSIX" > LC_MESSAGES="POSIX" > LC_PAPER="POSIX" > LC_NAME="POSIX" > LC_ADDRESS="POSIX" > LC_TELEPHONE="POSIX" > LC_MEASUREMENT="POSIX" > LC_IDENTIFICATION="POSIX" > LC_ALL= Please try to use a proper locale (something which ends with .UTF-8, even if only en_US.UTF-8). -- You are receiving this mail because: You are the assignee for the bug.
[okular] [Bug 364809] can't print file that contains invalid UTF-8 sequence
https://bugs.kde.org/show_bug.cgi?id=364809 --- Comment #9 from Florian E.J. Fruth--- LANG= LANGUAGE= LC_CTYPE="POSIX" LC_NUMERIC="POSIX" LC_TIME="POSIX" LC_COLLATE="POSIX" LC_MONETARY="POSIX" LC_MESSAGES="POSIX" LC_PAPER="POSIX" LC_NAME="POSIX" LC_ADDRESS="POSIX" LC_TELEPHONE="POSIX" LC_MEASUREMENT="POSIX" LC_IDENTIFICATION="POSIX" LC_ALL= -- You are receiving this mail because: You are the assignee for the bug.
[okular] [Bug 364809] can't print file that contains invalid UTF-8 sequence
https://bugs.kde.org/show_bug.cgi?id=364809 --- Comment #8 from Michael Weghorn--- I just experimented a bit. When I use an invalid locale, I can reproduce the message given in the bug report when printing: $ export LC_ALL=foobar bash: warning: setlocale: LC_ALL: cannot change locale (foobar): No such file or directory $ locale locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory LANG=en_GB.utf8 LANGUAGE=en_GB:en LC_CTYPE="foobar" LC_NUMERIC="foobar" LC_TIME="foobar" LC_COLLATE="foobar" LC_MONETARY="foobar" LC_MESSAGES="foobar" LC_PAPER="foobar" LC_NAME="foobar" LC_ADDRESS="foobar" LC_TELEPHONE="foobar" LC_MEASUREMENT="foobar" LC_IDENTIFICATION="foobar" LC_ALL=foobar $ okular kindergeldänderung3.pdf [...] lpr: Bad job-name value: "job-name": Bad name value "Ver�nderungsmitteilung" - bad UTF-8 sequence (RFC 2911 section 4.1.2). As mentioned in my previous comment, the output of the 'locale' command might be very helpful to see whether the problem you are experiencing might also have to do with incorrect locale settings. -- You are receiving this mail because: You are the assignee for the bug.
[okular] [Bug 364809] can't print file that contains invalid UTF-8 sequence
https://bugs.kde.org/show_bug.cgi?id=364809 --- Comment #7 from Michael Weghorn--- Can you provide the output of the command 'locale' run from command line? -- You are receiving this mail because: You are the assignee for the bug.
[okular] [Bug 364809] can't print file that contains invalid UTF-8 sequence
https://bugs.kde.org/show_bug.cgi?id=364809 --- Comment #6 from Florian E.J. Fruth--- Standard Ubuntu 16.04.2: dpkg --get-selections | grep -i cups | sed -r 's/\t.+//g' | xargs apt-get --reinstall -s install [...] Inst cups-browsed [1.8.3-2ubuntu3.1] (1.8.3-2ubuntu3.1 Ubuntu:16.04/xenial-updates [amd64]) Inst cups-daemon [2.1.3-4] (2.1.3-4 Ubuntu:16.04/xenial [amd64]) Inst cups-pdf [2.6.1-21] (2.6.1-21 Ubuntu:16.04/xenial [amd64]) Inst bluez-cups [5.37-0ubuntu5] (5.37-0ubuntu5 Ubuntu:16.04/xenial [amd64]) Inst cups-filters-core-drivers [1.8.3-2ubuntu3.1] (1.8.3-2ubuntu3.1 Ubuntu:16.04/xenial-updates [amd64]) Inst libcups2 [2.1.3-4] (2.1.3-4 Ubuntu:16.04/xenial [amd64]) Inst libcups2:i386 [2.1.3-4] (2.1.3-4 Ubuntu:16.04/xenial [i386]) Inst libcupsmime1 [2.1.3-4] (2.1.3-4 Ubuntu:16.04/xenial [amd64]) Inst cups-core-drivers [2.1.3-4] (2.1.3-4 Ubuntu:16.04/xenial [amd64]) Inst cups-server-common [2.1.3-4] (2.1.3-4 Ubuntu:16.04/xenial [all]) Inst cups-client [2.1.3-4] (2.1.3-4 Ubuntu:16.04/xenial [amd64]) Inst cups [2.1.3-4] (2.1.3-4 Ubuntu:16.04/xenial [amd64]) Inst cups-filters [1.8.3-2ubuntu3.1] (1.8.3-2ubuntu3.1 Ubuntu:16.04/xenial-updates [amd64]) Inst cups-common [2.1.3-4] (2.1.3-4 Ubuntu:16.04/xenial [all]) Inst cups-ppdc [2.1.3-4] (2.1.3-4 Ubuntu:16.04/xenial [amd64]) Inst libcupscgi1 [2.1.3-4] (2.1.3-4 Ubuntu:16.04/xenial [amd64]) Inst libcupsfilters1 [1.8.3-2ubuntu3.1] (1.8.3-2ubuntu3.1 Ubuntu:16.04/xenial-updates [amd64]) Inst libcupsimage2 [2.1.3-4] (2.1.3-4 Ubuntu:16.04/xenial [amd64]) Inst libcupsppdc1 [2.1.3-4] (2.1.3-4 Ubuntu:16.04/xenial [amd64]) Inst printer-driver-cups-pdf [2.6.1-21] (2.6.1-21 Ubuntu:16.04/xenial [amd64]) Inst printer-driver-hpcups [3.16.3+repack0-1] (3.16.3+repack0-1 Ubuntu:16.04/xenial [amd64]) Inst python3-cups [1.9.73-0ubuntu2] (1.9.73-0ubuntu2 Ubuntu:16.04/xenial [amd64]) Inst python3-cupshelpers [1.5.7+20160212-0ubuntu2] (1.5.7+20160212-0ubuntu2 Ubuntu:16.04/xenial [all]) Inst cups-bsd [2.1.3-4] (2.1.3-4 Ubuntu:16.04/xenial [amd64]) -- You are receiving this mail because: You are the assignee for the bug.
[okular] [Bug 364809] can't print file that contains invalid UTF-8 sequence
https://bugs.kde.org/show_bug.cgi?id=364809 --- Comment #5 from Albert Astals Cid--- Which cups are you using? -- You are receiving this mail because: You are the assignee for the bug.
[okular] [Bug 364809] can't print file that contains invalid UTF-8 sequence
https://bugs.kde.org/show_bug.cgi?id=364809 --- Comment #4 from Florian E.J. Fruth--- I still can't print this or other pdf files with "umlauts" in the title of the document. But I also can't reproduce this or another error message. And it's definitely okular: 1. if I replace /usr/bin/lpr with a bash script which does a "/usr/bin/lpr.orig $* -J dummy" it does work 2. firefox prints the same pdf file without problems -- You are receiving this mail because: You are the assignee for the bug.
[okular] [Bug 364809] can't print file that contains invalid UTF-8 sequence
https://bugs.kde.org/show_bug.cgi?id=364809 Albert Astals Cidchanged: What|Removed |Added Resolution|--- |WAITINGFORINFO CC||aa...@kde.org Status|UNCONFIRMED |NEEDSINFO --- Comment #3 from Albert Astals Cid --- Please answer Michael -- You are receiving this mail because: You are the assignee for the bug.
[okular] [Bug 364809] can't print file that contains invalid UTF-8 sequence
https://bugs.kde.org/show_bug.cgi?id=364809 Michael Weghornchanged: What|Removed |Added CC||m.wegh...@posteo.de --- Comment #2 from Michael Weghorn --- Do you still have the described problems? I just tried to reproduce them with the Okular versions included in KDE neon (Devedition gitstable) and in Debian testing and could not reproduce them. Both, opening the file and printing, worked fine for me. If the problems are still present: Can you please give some more information about your system (e.g. which Linux distribution, what version,...) and the output of the command `locale`? -- You are receiving this mail because: You are the assignee for the bug.
[Okular-devel] [okular] [Bug 364809] can't print file that contains invalid UTF-8 sequence
https://bugs.kde.org/show_bug.cgi?id=364809 Florian E.J. Fruthchanged: What|Removed |Added CC||spammai...@gmx.net -- You are receiving this mail because: You are the assignee for the bug. ___ Okular-devel mailing list Okular-devel@kde.org https://mail.kde.org/mailman/listinfo/okular-devel
[Okular-devel] [okular] [Bug 364809] can't print file that contains invalid UTF-8 sequence
https://bugs.kde.org/show_bug.cgi?id=364809 --- Comment #1 from peter.malo...@brockmann-consult.de --- Created attachment 99720 --> https://bugs.kde.org/attachment.cgi?id=99720=edit test pdf file a tar.gz with the pdf to test with... the tar is intended to preserve the bad encoding in the filename -- You are receiving this mail because: You are the assignee for the bug. ___ Okular-devel mailing list Okular-devel@kde.org https://mail.kde.org/mailman/listinfo/okular-devel