Replies: 1 comment
|
+1 我也碰到这个问题了 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Bug 描述
Windows 下通过"浏览文件夹"选择工作区目录时,路径中如果含有某些 CJK 字符会被截断。例如选择
D:\音频开发,确认后工作区路径变成D:\音频,随后报错:复现步骤
D:\音频开发D:\音频,创建失败根因
packages/host/directory-picker-native/src/win32-dialog-bindings.ts中的readUtf16:该循环只检查每个 UTF-16 code unit 的低字节是否为 0 来判断字符串结束。"开"(U+5F00)编码为
00 5F,低字节恰为0x00,被误判为 NUL 终止符,字符串提前结束。建议修复
环境
All reactions