scp in this Terminal cannot resolve local paths with Chinese characters in them #12926

Closed
opened 2026-01-31 03:29:09 +00:00 by claunia · 2 comments
Owner

Originally created by @driftee on GitHub (Mar 9, 2021).

Environment

Windows build number: Microsoft Windows NT 10.0.19041.0
Windows Terminal version (if applicable): WindowsTerminalPreview_1.7.572.0

Any other software?
OpenSSH_for_Windows_7.7p1, LibreSSL 2.6.5

Steps to reproduce

command line:

scp [-r(for folder)] [local path(with Chinese chars in it)] [remote path]

And then enter password for authentication.

Expected behavior

In original powershell, the scp works well as it does. It can resovle Chinese chars in the local path and do the transmission.

Actual behavior

In this terminal, scp won't take out the transmission(it says the path does not exist). Some other commands like ls, cat, rm, mv, work well in this situation.

Originally created by @driftee on GitHub (Mar 9, 2021). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> <!-- This bug tracker is monitored by Windows Terminal development team and other technical folks. **Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**. Instead, send dumps/traces to secure@microsoft.com, referencing this GitHub issue. If this is an application crash, please also provide a Feedback Hub submission link so we can find your diagnostic data on the backend. Use the category "Apps > Windows Terminal (Preview)" and choose "Share My Feedback" after submission to get the link. Please use this form and describe your issue, concisely but precisely, with as much detail as possible. --> # Environment ```none Windows build number: Microsoft Windows NT 10.0.19041.0 Windows Terminal version (if applicable): WindowsTerminalPreview_1.7.572.0 Any other software? OpenSSH_for_Windows_7.7p1, LibreSSL 2.6.5 ``` # Steps to reproduce command line: ``` scp [-r(for folder)] [local path(with Chinese chars in it)] [remote path] ``` And then enter password for authentication. <!-- A description of how to trigger this bug. --> # Expected behavior In original powershell, the scp works well as it does. It can resovle Chinese chars in the local path and do the transmission. <!-- A description of what you're expecting, possibly containing screenshots or reference material. --> # Actual behavior In this terminal, scp won't take out the transmission(it says the path does not exist). Some other commands like `ls`, `cat`, `rm`, `mv`, work well in this situation. <!-- What's actually happening? -->
claunia added the Needs-TriageNeeds-Tag-Fix labels 2026-01-31 03:29:09 +00:00
Author
Owner

@skyline75489 commented on GitHub (Mar 9, 2021):

I can't repro this locally. Please provide the exact failure you encountered. Screenshots would be nice.

@skyline75489 commented on GitHub (Mar 9, 2021): I can't repro this locally. Please provide the exact failure you encountered. Screenshots would be nice.
Author
Owner

@driftee commented on GitHub (Mar 9, 2021):

See in F disk, I have a folder named '文档' and want to use scp to upload a file and a forlder to a server, both of which failed. And some garbled code can be seen.
1
Well, I think this may be a problem of scp. Because I encountered the same problem in original powershell.
2.

@driftee commented on GitHub (Mar 9, 2021): See in F disk, I have a folder named '文档' and want to use scp to upload a file and a forlder to a server, both of which failed. And some garbled code can be seen. ![1](https://user-images.githubusercontent.com/48539371/110424204-6117a780-80dd-11eb-800b-48ae2a00a7d4.png) Well, I think this may be a problem of scp. Because I encountered the same problem in original powershell. ![2](https://user-images.githubusercontent.com/48539371/110426897-d6857700-80e1-11eb-8246-c32a367dbb40.png).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#12926