Could not open /home/user00/Documents/Books/FÃsica/Estadisticas/Fundamentals_of_Statistical_And_Thermal_Physics-F_Reif.pdf But if I first open okular and then open the file through File -> Open -> and select the same file. The file open fine. Debian Release: 9.0 500 testing httpredir.debian.org --- Package information. --- Depends (Version) | Installed ===============================================-+-========================= libokularcore7 (= 4:16.08.2-1+b1) | 4:16.08.2-1+b1 kde-runtime (>> 4:4.10) | 4:16.08.3-2 libc6 (>= 2.14) | libfreetype6 (>= 2.2.1) | libjpeg62-turbo (>= 1.3.1) | libkdecore5 (>= 4:4.14) | libkdeui5 (>= 4:4.14) | libkexiv2-11 (>= 4:4.5.90) | libkio5 (>= 4:4.14) | libkparts4 (>= 4:4.14) | libkprintutils4 (>= 4:4.14) | libkpty4 (>= 4:4.14) | libphonon4 (>= 4:4.6.0really4.3.80) | libpoppler-qt4-4 (>= 0.38.0) | libqca2 (>= 2.0.2) | libqimageblitz4 (>= 1:0.0.4) | libqmobipocket1 (>= 4:4.11.80) | libqt4-dbus (>= 4:4.6.1) | libqt4-declarative (>= 4:4.7.0~rc1) | libqt4-svg (>= 4:4.5.3) | libqt4-xml (>= 4:4.5.3) | libqtcore4 (>= 4:4.8.0) | libqtgui4 (>= 4:4.8.0) | libsolid4 (>= 4:4.14) | libspectre1 (>= 0.2.3) | libstdc++6 (>= 5) | phonon | zlib1g (>= 1:1.1.4) | Recommends (Version) | Installed =========================-+-=========== cups-bsd | 2.2.1-8 Suggests (Version) | Installed ============================================-+-=================== ghostscript | 9.20~dfsg-3 jovie | okular-extra-backends (= 4:16.08.2-1+b1) | 4:16.08.2-1+b1 poppler-data | 0.4.7-8 texlive-binaries | 2016.20160513.41080.dfsg-2 unrar | 1:5.3.2-1 -- Sincerely, Máximo Ramírez
Hi Máximo, I tried to reproduce the described issue with current Debian sid/unstable, but was unable to do so. What I did: 1) create some PDF file (using LibreOffice) under the path you mentioned $ ls -l /home/user00/Documents/Books/FÃsica/Estadisticas/Fundamentals_of_Statistical_And_Thermal_Physics-F_Reif.pdf -rw-r--r-- 1 user00 user00 7083 Jul 18 11:33 /home/user00/Documents/Books/FÃsica/Estadisticas/Fundamentals_of_Statistical_And_Thermal_Physics-F_Reif.pdf 2) Open the directory in Dolphin (KDE's file manager) 3) Open the file using right click in the file manager -> "Open with" -> "Okular" For me, the file opened file and was displayed in Okular as expected. I am not sure whether the steps I took are exactly the same ones that you took. Can you possibly give some more information about that? Are you also using Dolphin (KDE's file manager) or possibly another file manager? Regards, Michael
https://bugs.kde.org/show_bug.cgi?id=358289 seems to be a corresponding upstream bug.
Dear Maintainer,
*** Reporter, please consider answering these questions, where appropriate ***
* What led up to the situation?
- create a folder in Dolphin that contains accents (e.g. from czech alphabet), place a pdf inside and open the file, Okular opens complaining that the file cannot be found, the reference to the file has wrongly encoded characters with accents. When you go to File->Open in Okular straight away, you can see the PDF file in the folder and the path to the folder has wrongly encoded accent characters.
* What exactly did you do (or not do) that was effective (or
ineffective)?
- PDF files that are in a path that contains accents cannot be opened directly by clicking on them in Dolphin
* What was the outcome of this action?
- The file did not open/
* What outcome did you expect instead?
- the file was supposed to be opened.
*** End of the template - remove these template lines ***
Hi Leoš, thanks for reporting that you also have this issue. The above output indicates that something seems to be wrong with your locale settings. Can you please post the output of the command "locale"? Does the problem go away if the respective locales are generated? You can have them generated by running the command "dpkg-reconfigure" (with root privileges) and selecting the corresponding locales. (The above output suggests that those are "cs_CZ.UTF-8" and "en_US.UTF-8" in your case.) Regards, Michael
I have more details. In my case, I had in System settings -> Regional settings -> Formats: Region: United States - American English (en_US) Detailed settings enabled and time format set to Czech (cs_CZ). With this particular settings I can reproduce the problem plus I get the errors with locale. Once I switch this settings to "No change" are logout and log back in, Okular opens pdf files in a path with accents without a problem. I have confirmed it twice. The locale outputs with the time set to "No change": LANG=en_US.UTF-8 LANGUAGE= LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8" LC_ALL= and this is the output of locale when I change time format to czech (with region en_US): locale: Cannot set LC_ALL to default locale: No such file or directory LANG=en_US.UTF-8 LANGUAGE= LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME=cs_CZ.UTF-8 LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8" LC_ALL= Leos
Thanks for the additional information. As far as I understand it so far, this is not really an Okular problem, but one of your locale settings. Can you please try the following: * open a terminal * run the following command there: "sudo dpkg-reconfigure locales" * select "cs_CZ.UTF-8" and confirm so that the respective locale is generated (There may be ways to generate the locales using the graphical user interface instead, but that depends on the specific desktop environment in use. Please let me know in case the above steps are not clear enough.) Regards, Michael
I can confirm that this helped resolve the issue. Thank you very much!
Leos
Thanks for the additional information. As far as I understand it so far,
this is not really an Okular problem, but one of your locale settings.
Can you please try the following:
* open a terminal
* run the following command there: "sudo dpkg-reconfigure locales"
* select "cs_CZ.UTF-8" and confirm so that the respective locale is
generated
(There may be ways to generate the locales using the graphical user
interface instead, but that depends on the specific desktop environment
in use. Please let me know in case the above steps are not clear enough.)
Regards,
Michael
On 2017-10-05 18:21, lpohl@centrum.cz wrote:
>
> I have more details. In my case, I had in System settings -> Regional
> settings -> Formats:
> Region: United States - American English (en_US)
> Detailed settings enabled and time format set to Czech (cs_CZ). With
> this particular settings I can reproduce the problem plus I get the
> errors with locale. Once I switch this settings to "No change" are
> logout and log back in, Okular opens pdf files in a path with accents
> without a problem. I have confirmed it twice.
>
>
>
> The locale outputs with the time set to "No change":
>
> LANG=en_US.UTF-8
> LANGUAGE=
> LC_CTYPE="en_US.UTF-8"
> LC_NUMERIC="en_US.UTF-8"
> LC_TIME="en_US.UTF-8"
> LC_COLLATE="en_US.UTF-8"
> LC_MONETARY="en_US.UTF-8"
> LC_MESSAGES="en_US.UTF-8"
> LC_PAPER="en_US.UTF-8"
> LC_NAME="en_US.UTF-8"
> LC_ADDRESS="en_US.UTF-8"
> LC_TELEPHONE="en_US.UTF-8"
> LC_MEASUREMENT="en_US.UTF-8"
> LC_IDENTIFICATION="en_US.UTF-8"
> LC_ALL=
>
> and this is the output of locale when I change time format to czech
> (with region en_US):
>
> locale: Cannot set LC_ALL to default locale: No such file or directory
> LANG=en_US.UTF-8
> LANGUAGE=
> LC_CTYPE="en_US.UTF-8"
> LC_NUMERIC="en_US.UTF-8"
> LC_TIME=cs_CZ.UTF-8
> LC_COLLATE="en_US.UTF-8"
> LC_MONETARY="en_US.UTF-8"
> LC_MESSAGES="en_US.UTF-8"
> LC_PAPER="en_US.UTF-8"
> LC_NAME="en_US.UTF-8"
> LC_ADDRESS="en_US.UTF-8"
> LC_TELEPHONE="en_US.UTF-8"
> LC_MEASUREMENT="en_US.UTF-8"
> LC_IDENTIFICATION="en_US.UTF-8"
> LC_ALL=
>
>
>
> Leos
>
>
>
> ______________________________________________________________
>> Od: Michael Weghorn <m.weghorn@posteo.de>
>> Komu: Leoš Pohl <lpohl@centrum.cz>, 860360@bugs.debian.org
>> Datum: 04.10.2017 21:18
>> Předmět: Re: Bug#860360: okular: I can confirm the bug with czech accents.
>>
> Hi Leoš,
>
> thanks for reporting that you also have this issue.
>
> On 2017-10-04 18:42, Leoš Pohl wrote:
>>
>> -- debconf information:
>> perl: warning: Setting locale failed.
>> perl: warning: Please check that your locale settings:
>> LANGUAGE = "",
>> LC_ALL = (unset),
>> LC_TIME = "cs_CZ.UTF-8",
>> LANG = "en_US.UTF-8"
>> are supported and installed on your system.
>> perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
>> locale: Cannot set LC_ALL to default locale: No such file or directory
>>
>
> The above output indicates that something seems to be wrong with your
> locale settings.
>
> Can you please post the output of the command "locale"?
>
> Does the problem go away if the respective locales are generated?
> You can have them generated by running the command "dpkg-reconfigure"
> (with root privileges) and selecting the corresponding locales. (The
> above output suggests that those are "cs_CZ.UTF-8" and "en_US.UTF-8" in
> your case.)
>
>
> Regards,
> Michael
>
You're welcome. Thanks for the confirmation that this solved the issue! @Máximo: Do you still have the issue with Okular not being able to open PDF files if the path contains accents? Do the steps described below possibly also fix the problem for you? Instead of selecting "cs_CZ.UTF-8", that might be something else in your case. Can you possibly post the output you get when you type the command "locale" on the command line? Regards, Michael
-- Ahoj zlato jak se máte? jmenuji se Edith Brownová Jsem vojenská žena z USA je mi potěšením tě tady potkat s pozdravem