Bug 381521 - Okular doesn't work with russian filenames
Summary: Okular doesn't work with russian filenames
Status: RESOLVED NOT A BUG
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 0.26.1
Platform: Debian stable Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-22 08:55 UTC by lao.zzzi
Modified: 2017-06-25 20:44 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
error example (7.76 KB, image/png)
2017-06-22 08:55 UTC, lao.zzzi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description lao.zzzi 2017-06-22 08:55:41 UTC
Created attachment 106225 [details]
error example

Okular does not open files with russian filenames(can't correct "read" names).
Comment 1 Luigi Toscano 2017-06-22 08:58:14 UTC
What is your system locale? (you can paste the output of the `locale` command as user)
Comment 2 lao.zzzi 2017-06-22 09:00:58 UTC
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=
Comment 3 Luigi Toscano 2017-06-22 09:08:30 UTC
Did you set the locale through the systemsettings or when you installed Debian?

Please make sure that the locale exists (dpkg-reconfigure locales).
Comment 4 lao.zzzi 2017-06-22 10:05:17 UTC
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??
Comment 5 lao.zzzi 2017-06-22 10:06:43 UTC
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.
Comment 6 Luigi Toscano 2017-06-22 10:08:33 UTC
(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.
Comment 7 lao.zzzi 2017-06-22 10:18:14 UTC
(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.
Comment 8 Luigi Toscano 2017-06-22 10:22:33 UTC
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.
Comment 9 lao.zzzi 2017-06-22 10:57:01 UTC
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.
Comment 10 Albert Astals Cid 2017-06-25 20:44:43 UTC
it was system misconfiguration