Bug 470031 - Long name folder containing Chinese character make Dolphin with terminal panel & zsh unable to enter the folder
Summary: Long name folder containing Chinese character make Dolphin with terminal pane...
Status: CONFIRMED
Alias: None
Product: dolphin
Classification: Applications
Component: panels: terminal (show other bugs)
Version: 23.04.1
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-20 08:25 UTC by hyelloemail
Modified: 2023-09-06 10:08 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
screenshot of Dolphin (505.01 KB, image/png)
2023-05-20 08:25 UTC, hyelloemail
Details

Note You need to log in before you can comment on or make changes to this bug.
Description hyelloemail 2023-05-20 08:25:40 UTC
Created attachment 159128 [details]
screenshot of Dolphin

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***
When I tried to enter a long name folder containing Chinese character, Dolphin with terminal panel & zsh was unable to enter the folder.

STEPS TO REPRODUCE
1. Current folder is /mnt/windata/BT_Download/
2. clicking the sub-folder, the name is 推荐配置文件(首选!通透纯净适当锐化降噪,只需导入配置)
3. Terminal panel executes double cd action and the latter one is broken, showing error output, and this makes Dolphin think the folder does not exist.
4. Trying export LC_ALL=en_US.UTF-8 and I can successfully opened it, but the pwd prompt becomes a string of code

OBSERVED RESULT
terminal output:
➜  BT_Download  cd /mnt/windata/BT_Download/推荐配置文件(首选!通透纯净适当锐化降噪,只需导入配置)
➜  推荐配置文件(首选!通透纯净适当锐化降噪,只需导入配置)  cd /mnt/windata/BT_Download/推荐配置文件(首选!通透纯净适当锐化降噪,只需�
cd: 没有那个文件或目录: /mnt/windata/BT_Download/推荐配置文件(首选!通透纯净适当锐化降噪,只需�

For Dolphin behavior, please take a look at the attached screenshot.

EXPECTED RESULT
Enter the folder and switch the current path of zsh to it normally too 

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux (6.1.29-x64v3-xanmod1-1-lts)
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.106.0
Qt Version: 5.15.9

ADDITIONAL INFORMATION
I am using zsh and oh-my-zsh, all the settings of them are default. When I changed the profile setting of Konsole and tried bash, the problem disappeared, so maybe there are some problems interacting with zsh.
Comment 1 Zhora Zmeikin 2023-09-04 15:57:25 UTC
Hi! I have a similar problem and it also occurs because of very long folders, not just because of Chinese characters.
Comment 2 Zhora Zmeikin 2023-09-06 10:08:03 UTC
(In reply to Zhora Zmeikin from comment #1)
> Hi! I have a similar problem and it also occurs because of very long
> folders, not just because of Chinese characters.

Let me add, this problem only occurs when using oh-my-zsh. And it occurs even if no plugin is installed. When using the original zsh there are no such problems.