Replies: 1 comment
|
改用英文。 |
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.
Uh oh!
There was an error while loading. Please reload this page.
在 Windows 上用
npx @deepseek-ai/dsh web(0.1.0-rc.6)选本地文件夹,原生对话框里选的是整理APP需求,点「选择文件夹」之后报错路径却少了后面两个字:这个目录是存在的。对话框底部「文件夹」输入框显示的也是完整名称。
查了一下是 Win32 原生选择器
readUtf16的问题:按 UTF-16 两字节往前扫,但只判断低字节bytes[end] !== 0。「需」是 U+9700,低字节正好是 0,被当成字符串结束了。路径里有「一」「开」「最」「退」「需」这类U+xx00的字都会截断。相关代码:
packages/host/directory-picker-native/src/win32-dialog-bindings.ts改成
bytes.readUInt16LE(end) !== 0就可以。All reactions