Chinese Character in directory name is broken when using Fish with the function "working directory reuse previous session's directory"
Bug report
Thanks for filing an issue! Please answer the questions below so I can help you.
-
iTerm2 version: 3.4.19
-
OS version: 14.4
-
Attach
~/Library/Preferences/com.googlecode.iterm2.plist
here (drag-drop from finder into this window) com.googlecode.iterm2.plist -
Attach a debug log, if possible. debuglog.txt
-
Attach a screen capture video if it would make the reproduction steps clearer.
Screen_Recording_2024-03-23_at_08.03.15
PLEASE ATTACH YOUR PLIST FILE FOR BUG REPORTS! Seriously! I'll probably ask you for it if you don’t.
Detailed steps to reproduce the problem
- Using the latest Fish Shell
- Enter a folder name with Chinese Character
- Open a new tab with the setting "working directory: reuse previous session's directory"
- weird characters show up
What happened
I have no idea, but I tried the same fish shell settings with the mac default terminal app, and it works without a problem. I have also tried iTerm with zsh or bash, they also have no issue with iTerm2. So I guess maybe it has something to do with fish & iTerm/
What should have happened
The path in the new tab should be the same with the previous one.