koishijs / koishi

Cross-platform chatbot framework made with love
https://koishi.chat
MIT License
4.5k stars 247 forks source link

Bug: 在含有中文的路径下无法正常安装插件 #855

Closed MirrorCY closed 1 year ago

MirrorCY commented 1 year ago

Describe the bug

在 windows 中文用户名 环境下,安装 koishi-desktop 0.8.2 可以启动,但安装插件时报错,报错信息为 [W] market ϵͳ Ҳ ָ · 此情况同样出现在 koishi-desktop 0.8.1 便携包中,当便携包被解压到含有中文的路径下并运行时,安装插件会失败并报错

经测试,使用 yarn create koishi 无法复现此问题,如果本 issue 提错了地方,请指导。

Steps to reproduce

创建全新 windows 10 虚拟机并设置用户名为中文 安装 koishi-desktop 0.8.2 从插件市场安装 novelai-bot 插件 查看日志中的报错

未经完全测试,稍晚将补全测试结果

Expected behavior

可以正常在中文用户名的设备上使用 koishi-desktop 安装包

Screenshots

2022-11-27 01:36:06 [I] app server listening at http://localhost:5140
2022-11-27 01:36:08 [I] sqlite auto creating table user
2022-11-27 01:36:08 [I] sqlite auto creating table channel
2022-11-27 01:36:08 [I] sqlite auto creating table stats_daily
2022-11-27 01:36:08 [I] sqlite auto creating table stats_hourly
2022-11-27 01:36:08 [I] sqlite auto creating table stats_longterm
2022-11-27 01:36:30 [W] market ϵͳ Ҳ   ָ    ·    
2022-11-27 01:58:46 [W] market ϵͳ Ҳ   ָ    ·    
2022-11-27 01:58:53 [W] market ϵͳ Ҳ   ָ    ·    
2022-11-27 01:59:17 [W] market ϵͳ Ҳ   ָ    ·

Versions

Additional context

No response

ilharp commented 1 year ago

duplicate of koishijs/koishi-desktop#103

MirrorCY commented 1 year ago

抱歉,下次注意(