Bug 861668 - Cannot open Russian filenames
Summary: Cannot open Russian filenames
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: libreoffice
Version: 17
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
Assignee: Caolan McNamara
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-09-29 21:28 UTC by Tobias Mueller
Modified: 2012-10-01 07:27 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-10-01 07:27:41 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
screenshot of the problem (8.87 KB, image/png)
2012-09-29 21:28 UTC, Tobias Mueller
no flags Details

Description Tobias Mueller 2012-09-29 21:28:05 UTC
Created attachment 619213 [details]
screenshot of the problem

Description of problem:
I have a .xls file from a Russian Windows system but libreoffice can't open it :(

The filename could be
In [43]: f1 = '\xd1%88\xd0\xba.2.xls'

In [44]: open('/tmp/'+f1, 'w')
Out[44]: <open file '/tmp/�%88к.2.xls', mode 'w' at 0x1112c00>


Opening with LibreOffice fails:
$ libreoffice *2.xls
produces an error message, that the file could not be opened.

Turns out, that the \xd1 is the minimal test case. Opening '\xd1.4.xls' fails.



Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:
I expected it to open the file. Despite the fact that the filename is not proper utf-8 but probably windows-1252 or so.

Additional info:

Comment 1 Stephan Bergmann 2012-10-01 07:27:41 UTC
This is an unfortunate consequence of a long-standing internal design decision in LibreOffice/OpenOffice.org, namely to internally represent all pathnames as file URLs with UTF-8 encoded payload.  In a locale like UTF-8, where \xD1 does not represent a valid character, there is currently no way for LibreOffice to transport the pathname intact from the user to the system interface.  Due to the massive impact any changes to this would have, a fix in the foreseeable future is unlikely.

As a workaround, you can rename the file before opening, or try to start soffice from a locale where \xD1 /is/ a valid character, like

  LC_ALL=C soffice ...


Note You need to log in before you can comment on or make changes to this bug.