Bug 150820 - Can't open file named in non latin languages
Summary: Can't open file named in non latin languages
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
7.3.5.2 release
Hardware: x86-64 (AMD64) Linux (All)
: low normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: RTL-CTL
  Show dependency treegraph
 
Reported: 2022-09-06 10:59 UTC by medmedin2014
Modified: 2022-09-16 19:58 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Error opening file (177.28 KB, image/png)
2022-09-06 10:59 UTC, medmedin2014
Details
Test file (65.69 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2022-09-06 11:00 UTC, medmedin2014
Details
Test file 2 (64.43 KB, application/zip)
2022-09-06 11:07 UTC, medmedin2014
Details
Font settings (234.01 KB, image/png)
2022-09-07 10:49 UTC, medmedin2014
Details
i attached screenshot for proof (304.91 KB, image/png)
2022-09-11 06:15 UTC, Sundaravadivel G
Details
Can Open file Non Latin Laguage (68.46 KB, image/png)
2022-09-11 07:19 UTC, Pradeep M
Details

Note You need to log in before you can comment on or make changes to this bug.
Description medmedin2014 2022-09-06 10:59:45 UTC
Created attachment 182250 [details]
Error opening file

It's impossible to open any file named in Arabic. See attached image and file.

Version: 7.3.5.2 / LibreOffice Community
Build ID: 30(Build:2)
CPU threads: 2; OS: Linux 5.19; UI render: default; VCL: kf5 (cairo+xcb)
Locale: en-US (en_US.UTF-8); UI: en-US
7.3.5-3
Calc: threaded

Operating System: Manjaro Linux
KDE Plasma Version: 5.24.6
KDE Frameworks Version: 5.96.0
Qt Version: 5.15.5
Kernel Version: 5.19.1-3-MANJARO (64-bit)
Graphics Platform: X11
Comment 1 medmedin2014 2022-09-06 11:00:29 UTC Comment hidden (obsolete)
Comment 2 medmedin2014 2022-09-06 11:05:11 UTC
(In reply to medmedin2014 from comment #1)
> Created attachment 182251 [details]
> Test file

It seems the file that I uploaded with Arabic name, when you download it from this bugs platform it comes modified with wrong encoding and creates a random non readable filename.
Comment 3 medmedin2014 2022-09-06 11:07:19 UTC
Created attachment 182253 [details]
Test file 2

Here it's zipped to avoid encoding change in filename.
Comment 4 Timur 2022-09-06 15:15:50 UTC Comment hidden (obsolete)
Comment 5 m_a_riosv 2022-09-06 19:14:16 UTC
Works fine for me with:
Version: 7.3.6.1 (x64) / LibreOffice Community
Build ID: 92b673af3a5e8f7cf4716be88dfaca424612f244
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: es-ES (es_ES); UI: en-US Calc: CL
Version: 7.4.1.1 (x64) / LibreOffice Community
Build ID: 0a046a10cbf1679eea5538bd3ab63156caa3a036
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: es-ES (es_ES); UI: en-US Calc: CL

Please test with a clean profile, Menu/Help/Restart in Safe Mode
Comment 6 medmedin2014 2022-09-06 20:47:29 UTC
(In reply to m.a.riosv from comment #5)

> Please test with a clean profile, Menu/Help/Restart in Safe Mode

The bug is reported on Linux (Manjaro KDE) not on Windows.
Comment 7 medmedin2014 2022-09-06 21:15:37 UTC
(In reply to Timur from comment #4)
> Are you saying it only doesn't open with LO and that it opens with some
> other program?

Yes, the file can be opened on Linux (Manjaro KDE) using Calibre E-Book viewer and WPS and even Ark (zipper/unzipper tool).
Comment 8 Timur 2022-09-07 08:53:20 UTC Comment hidden (obsolete)
Comment 9 medmedin2014 2022-09-07 09:09:15 UTC Comment hidden (obsolete)
Comment 10 medmedin2014 2022-09-07 09:26:49 UTC
It seems the problem is not related to only Arabic script, but it also happens with Hebrew, Thai, Russian and Japanese.
Comment 11 Timur 2022-09-07 10:25:31 UTC
(In reply to medmedin2014 from comment #9)
> (In reply to Timur from comment #8)
> > I don't know what I need in Linux to even see Arabic file name.
> Simply use Noto Sans as system font, it has wide range support for many
> languages.

It needs something more to get it proper as in your screenshot.
Comment 12 medmedin2014 2022-09-07 10:49:55 UTC
Created attachment 182280 [details]
Font settings

(In reply to Timur from comment #11)
> It needs something more to get it proper as in your screenshot.

I don't know, but here's my font configuration with installed font packages.
Comment 13 Timur 2022-09-08 10:08:45 UTC Comment hidden (obsolete)
Comment 14 Sundaravadivel G 2022-09-11 06:15:22 UTC
Created attachment 182358 [details]
i attached screenshot for proof
Comment 15 Sundaravadivel G 2022-09-11 06:29:36 UTC Comment hidden (me-too)
Comment 16 Sundaravadivel G 2022-09-11 06:30:22 UTC Comment hidden (me-too, obsolete)
Comment 17 Sundaravadivel G 2022-09-11 06:32:55 UTC Comment hidden (obsolete)
Comment 18 Pradeep M 2022-09-11 07:19:07 UTC
Created attachment 182371 [details]
Can Open file  Non Latin Laguage

Step1-open libre office file
Step2-Upload some Contant 
Step3-And save the Documents in non latin language 
Step4- You can open that document



Environment
libre office curent vertion-6.4.7.2
linux mint curent vertion-21
Comment 19 Timur 2022-09-11 08:04:50 UTC
Back to reporter to find out the cause.
Comment 20 medmedin2014 2022-09-11 20:52:05 UTC
(In reply to Sundaravadivel G from comment #17)

> ENVIRONMENT:LibreOffice 7.4.0.3 release/win_X64_msi

The problem happens on Linux not Windows.
Comment 21 medmedin2014 2022-09-11 20:57:03 UTC
(In reply to Pradeep M from comment #18)

> Environment
> libre office curent vertion-6.4.7.2
> linux mint curent vertion-21

We are talking about LibreOffice 7.3.5.2, your installed version is too old.
Can you re-test with 7.4 or even with the dev version 7.5.0.0.alpha0+
Comment 22 Michael Warner 2022-09-12 13:51:51 UTC
I changed the OS field to Linux due to Comment 0, Comment 18, and Comment 20.
Comment 23 Hossein 2022-09-14 15:19:25 UTC
(In reply to Timur from comment #13)
> Let's try with Hossein of TDF, please see.

I tried to open this file on my Ubuntu Linux, and it was OK:

/home/hossein/عربي/فارسی.odt

In my test with loading from "file > open", drag an drop, and also command line, the file was loaded without any problem.

It was not reproducible with:

Version: 7.5.0.0.alpha0+ / LibreOffice Community
Build ID: de57562e3b11b64d95344a4ebaaf53607e7bc373
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: kf5 (cairo+xcb)
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded

I suggest you to open the file with drag/drop, and check if you can open the file.

On the other hand, somehow similar problem was happening when setting the locale to  C, but with a different error message: "The operation on ... was started with an invalid parameter."

$ LANG=C instdir/program/soffice

Version: 7.5.0.0.alpha0+ / LibreOffice Community
Build ID: de57562e3b11b64d95344a4ebaaf53607e7bc373
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-US (C); UI: en-US
Calc: threaded

I think this is a locale/encoding problem in a part of your system. Are you sure you are using UTF-8 everywhere?

Another thing to test:

Can you see if this setting has any effect on the problem?

Options > General > Open/Save Dialogs > [ ] Use LibreOffice dialogs
Comment 24 Hossein 2022-09-16 14:27:40 UTC
Hello medmedin2014,

I am setting the bug status to NEEDINFO, because more information about your system settings (language, locale, etc.) is needed to understand the cause of the problem.

Information from LibreOffice about dialog is useful (as you provided it), but it is not enough to further follow the cause of the problem. Please respond to the questions in comment 23.

With the current details, the problem is not reproducible for me.
Comment 25 medmedin2014 2022-09-16 19:41:18 UTC
(In reply to Hossein from comment #23)

> On the other hand, somehow similar problem was happening when setting the
> locale to  C, but with a different error message: "The operation on ... was
> started with an invalid parameter."

After opening "/etc/locale.gen" I found that my previous selected entry "en_US.UTF-8 UTF-8" was disabled (commented), I don't how it ended like that, may be due to last upgrades it was reset to that configuration without prompting. After enabling that entry and rerun "sudo locale-gen" on terminal all worked again like it was before. Thanks for your precious help.
Comment 26 Eyal Rozenberg 2022-09-16 19:58:20 UTC
I wonder, though... could we possibly detect cases where it is _likely_ that this is what's happening (e.g. getting an empty filename, getting a filename with stand-in characters, or spaces, etc.) and give a more verbose warning suggesting this may be the cause of the problem?