| Summary: | Okular doesn't work with russian filenames | ||
|---|---|---|---|
| Product: | [Applications] okular | Reporter: | lao.zzzi |
| Component: | general | Assignee: | Okular developers <okular-devel> |
| Status: | RESOLVED NOT A BUG | ||
| Severity: | normal | CC: | aacid, lao.zzzi, luigi.toscano |
| Priority: | NOR | ||
| Version First Reported In: | 0.26.1 | ||
| Target Milestone: | --- | ||
| Platform: | Debian stable | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: | error example | ||
What is your system locale? (you can paste the output of the `locale` command as user) 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=ru_BY.UTF-8 LANGUAGE=ru:en_US LC_CTYPE="ru_BY.UTF-8" LC_NUMERIC="ru_BY.UTF-8" LC_TIME="ru_BY.UTF-8" LC_COLLATE="ru_BY.UTF-8" LC_MONETARY="ru_BY.UTF-8" LC_MESSAGES="ru_BY.UTF-8" LC_PAPER="ru_BY.UTF-8" LC_NAME="ru_BY.UTF-8" LC_ADDRESS="ru_BY.UTF-8" LC_TELEPHONE="ru_BY.UTF-8" LC_MEASUREMENT="ru_BY.UTF-8" LC_IDENTIFICATION="ru_BY.UTF-8" LC_ALL= Did you set the locale through the systemsettings or when you installed Debian? Please make sure that the locale exists (dpkg-reconfigure locales). 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 How do I fix this?? sudo dpkg-reconfigure locales
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "ru:en_US",
LC_ALL = (unset),
LANG = "ru_BY.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
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
/usr/bin/locale: Cannot set LC_CTYPE to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_MESSAGES to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_ALL to default locale: No such file or directory
Generating locales (this might take a while)...
en_US.UTF-8... done
ru_RU.UTF-8... done
Generation complete.
(In reply to lao.zzzi from comment #5) > sudo dpkg-reconfigure locales > perl: warning: Setting locale failed. > perl: warning: Please check that your locale settings: > LANGUAGE = "ru:en_US", > LC_ALL = (unset), > LANG = "ru_BY.UTF-8" > are supported and installed on your system. > perl: warning: Falling back to the standard locale ("C"). > 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 > /usr/bin/locale: Cannot set LC_CTYPE to default locale: No such file or > directory > /usr/bin/locale: Cannot set LC_MESSAGES to default locale: No such file or > directory > /usr/bin/locale: Cannot set LC_ALL to default locale: No such file or > directory > Generating locales (this might take a while)... > en_US.UTF-8... done > ru_RU.UTF-8... done > Generation complete. Did dpkg-reconfigure ask you any question? I should have seen a list box with all the available locales, and you should have been asked to set the default locale. (In reply to Luigi Toscano from comment #6) > (In reply to lao.zzzi from comment #5) > > sudo dpkg-reconfigure locales > > perl: warning: Setting locale failed. > > perl: warning: Please check that your locale settings: > > LANGUAGE = "ru:en_US", > > LC_ALL = (unset), > > LANG = "ru_BY.UTF-8" > > are supported and installed on your system. > > perl: warning: Falling back to the standard locale ("C"). > > 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 > > /usr/bin/locale: Cannot set LC_CTYPE to default locale: No such file or > > directory > > /usr/bin/locale: Cannot set LC_MESSAGES to default locale: No such file or > > directory > > /usr/bin/locale: Cannot set LC_ALL to default locale: No such file or > > directory > > Generating locales (this might take a while)... > > en_US.UTF-8... done > > ru_RU.UTF-8... done > > Generation complete. > > Did dpkg-reconfigure ask you any question? I should have seen a list box > with all the available locales, and you should have been asked to set the > default locale. I've chosen locales "en_US.UTF-8" and "ru_RU.UTF-8". As default I set "ru_RU.UTF-8", but it doesn't effect. When I run dpkg-reconfigure second time it shows the same errors and warnings like at first time. There is still a pending question: did you set the "ru_BY.UTF-8" locale through systemsettings ("Regional Settings" -> "Formats")?
Do you see a ru_BY locale in Debian, from dpkg-reconfigure locales? If not, you should change the settings in systemsettings to match an existing locale.
thanks, it's worked :) It were much locales on systemsettings and part of them was writed with russian letters(I didn't notice it at first). So it takes time to find ru_RU there... But now everything is working. Btw, on the top of okular's window writed some ugly code instead of file's name. But that's not error, just a little notice :) And that is occured not in all pdf-files. I've find only one file with such problem yet. it was system misconfiguration |
Created attachment 106225 [details] error example Okular does not open files with russian filenames(can't correct "read" names).