https://bugs.kde.org/show_bug.cgi?id=432406

            Bug ID: 432406
           Summary: Cannot open file with non-ascii name when LC_ALL is
                    not set
           Product: dolphin
           Version: 20.08.3
          Platform: Gentoo Packages
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: dolphin-bugs-n...@kde.org
          Reporter: tus...@vista.aero
                CC: kfm-de...@kde.org
  Target Milestone: ---

SUMMARY

Trying to open a file whose absolute path contains non-ascii will prompt that
the file does not exist. Setting LC_ALL to a utf-8 locale seems to be a
workaround.

STEPS TO REPRODUCE
1. `touch 测试`
2. `locale`
3. Try to open that file in dolphin
4. (unset LC_CTYPE;export LANG=en_CA.UTF-8;dolphin) and try again
5. (unset LC_CTYPE;export LC_ALL=en_CA.UTF-8;dolphin) and try again


OBSERVED RESULT

2. 
] locale
LANG=en_CA.UTF-8
LC_CTYPE=zh_CN.UTF-8
LC_NUMERIC="en_CA.UTF-8"
LC_TIME="en_CA.UTF-8"
LC_COLLATE="en_CA.UTF-8"
LC_MONETARY="en_CA.UTF-8"
LC_MESSAGES="en_CA.UTF-8"
LC_PAPER="en_CA.UTF-8"
LC_NAME="en_CA.UTF-8"
LC_ADDRESS="en_CA.UTF-8"
LC_TELEPHONE="en_CA.UTF-8"
LC_MEASUREMENT="en_CA.UTF-8"
LC_IDENTIFICATION="en_CA.UTF-8"
LC_ALL=

3,4: Pops up a dialog with "Unable to run the command specified. The file or
folder /home/tusooa/测试 does not exist."

5: Pops up a dialog to choose an application to open that file. After choosing
one (/usr/bin/emacsclient), the file is successfully opened.

EXPECTED RESULT

3,4 should behave like 5.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 5.20.5
(available in About System)
KDE Plasma Version: 5.20.5
KDE Frameworks Version: 5.77.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION

This only applies to opening files, not directories.

The file can be trashed properly.

It seems to matter only when an external program is needed to open the file.

Konqueror seems to also suffer from this bug. However, the LC_ALL trick will do
nothing to it. Also it does not happen when you are opening an html file in
Konqueror.

I am not sure whether this is a Dolphin and Konqueror bug, or this is a kio
bug. If my judgement is wrong, please move it to the right product.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to