Repository navigation
Conversation
JoyElliot
marked this pull request as draft
September 26, 2026 15:59
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.
Result / 用户结果
修复 Windows GPUI 终端在 Win32 输入模式下丢失 Ctrl+C 控制字符的问题。GPUI 会把 ETX 从
key_char中过滤掉,原编码器因此发送Uc=0;现在按 Windows 原生翻译恢复Uc=3,让 adb 等读取字节流的程序收到中断字符。Design / 设计边界
ToUnicodehelper 泛化并复用。ToUnicode的无组合状态修改标志与单 UTF-16 单元限制。没有新增依赖、持久化、线程或协议格式。f回落到传统 VT 的解析行为不在本次改动范围内;本 PR 不宣称所有字母都已进入 Win32 编码路径。Evidence / 验证依据
tmp/issue213-tests,未加入产品提交。ReadConsoleInputW接收验证通过:down/up 均收到 VK=67、scan=46、UnicodeChar=3、ControlKeyState=8、Repeat=1。adb shell -tt ping -c 20 127.0.0.1,发送与修复后编码器输出一致的记录,显示^C并在 16 次后提前结束。没有操作手机屏幕。此前相同路径中 Uc=0 的对照不能中断有限次 ping。python scripts/check_architecture.py --base c70073b770785b0bf7d962d1048739cff19b6fce、python scripts/check_platform_cfg.py、git diff --check均通过。cargo test --manifest-path tools/i18n-contract/Cargo.toml --locked --offline:22 项通过、1 项忽略。cargo fmt --all -- --check在已提交源码的 LF 快照上通过。Windows checkout 的 CRLF 导致原始本地检查报换行差异,因此以禁用自动换行转换的 Git archive 快照运行原有检查,未修改仓库格式规则。ToUnicode调用。当前机器 release 探针编码 10,000 对 Ctrl+C down/up 共 12,177 µs;这只是本机完整编码耗时,不是前后性能差值或通用性能保证。Required Review / 必须确认
CONTRIBUTING.md、架构及项目约束,变更局限于现有职责。