Bug 21657 - can't correctly pass a filename with Russian to external program (at least, in ru_RU.KOI8-R or .CP1251)
Summary: can't correctly pass a filename with Russian to external program (at least, i...
Status: CLOSED WONTFIX
Alias: None
Product: Branch 5.0
Classification: Distributions
Component: firefox (show other bugs)
Version: unspecified
Hardware: all Linux
: P3 normal
Assignee: Nobody's working on this, feel free to take it
QA Contact: qa-5.0@altlinux.org
URL:
Keywords:
Depends on: 21658
Blocks:
  Show dependency tree
 
Reported: 2009-09-21 21:28 MSD by Ivan Zakharyaschev
Modified: 2018-06-29 19:22 MSK (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Zakharyaschev 2009-09-21 21:28:31 MSD
firefox-3.0.9-alt1.M50.1
$ rpm -qa '*xul*'
xulrunner-libs-1.9.0.9-alt1.M50.1
xulrunner-1.9.0.9-alt1.M50.1
xulrunner-gnome-support-1.9.0.9-alt1.M50.1
$ 

How to reproduce:

[ivan@dell ~]$ locale
LANG=ru_RU.KOI8-R
LC_CTYPE="ru_RU.KOI8-R"
LC_NUMERIC="ru_RU.KOI8-R"
LC_TIME="ru_RU.KOI8-R"
LC_COLLATE="ru_RU.KOI8-R"
LC_MONETARY="ru_RU.KOI8-R"
LC_MESSAGES=POSIX
LC_PAPER="ru_RU.KOI8-R"
LC_NAME="ru_RU.KOI8-R"
LC_ADDRESS="ru_RU.KOI8-R"
LC_TELEPHONE="ru_RU.KOI8-R"
LC_MEASUREMENT="ru_RU.KOI8-R"
LC_IDENTIFICATION="ru_RU.KOI8-R"
LC_ALL=
[ivan@dell ~]$ ls /home/ivan/data/OUT/bugreports/ALT/browsers/Russian-filenames
logo.doc  лого.doc
[ivan@dell ~]$ 

Now, start firefox an open this directory, click on the file with the Russian name (лого.doc), choose open in the menu.

Result:

openoffice is started, but it opens a new (empty) document. This wouldn't happen if one clicked on the file with the name in Latin letters (logo.doc). Also, if you typed 

$ oowriter /home/ivan/data/OUT/bugreports/ALT/browsers/Russian-filenames/лого.doc

it would correctly open the file. So the problem is with firefox not passing the arguments correctly to external programs.

Expected:

The filename is correctly passed to openoffice and the file is opened. This happens so in seamonkey-1.1.16-alt1 : seamonkey correctly opens this file in openoffice.
Comment 1 Ivan Zakharyaschev 2009-09-21 21:30:54 MSD
The same problem arises when opening files with Russian names which are attachments received in Gmail: they are not opened if they are simply clicked on in firefox. Workaround: save the attachement, then open it from a file browser (like Thunar) or give a command in shell.
Comment 2 Grigory Ustinov 2018-06-29 19:22:42 MSK
В p8 не воспроизводится.