Repository navigation
fix(ls): keep printable Unicode literal without POSIX locale - #1887
Merged
Merged
Conversation
Windows filenames cross the narrow boundary as UTF-8 regardless of the legacy system locale, while interactive ls defaults to shell-escape quoting. Treating an unset POSIX locale as the C locale made ordinary CJK names render as octal byte splices for typical Windows users. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Closed
Member
Author
|
CAPTAIN-VERIFY — 达合入门,队长合入。 运行时证据(X299,head
一条观察(不阻塞,已另立单跟进):shell-escape 在 C locale 下对多字符不可打印串的 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
LC_ALL=Cstill produces GNU-style escaped bytes.Fixes #1883
Test plan
cargo test --manifest-path rust2/Cargo.toml -p winux-cmds ls::testsscripts/build-with-vs.ps1cd build-vs && ctest --output-on-failure -R '^ls\.'(226/226 passed)中文;LC_ALL=Ckeeps the octal escaped formGenerated with Devin