-
-
Notifications
You must be signed in to change notification settings - Fork 711
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
开启force-utf8选项后,tb_file_init在mingw平台下的路径编码与Windows下不一致 #238
Comments
Title: After turning on the force-utf8 option, the path encoding of tb_file_init under the mingw platform is inconsistent with that under Windows. |
你调下这里,另外确认下 有没有开 https://github.com/tboox/tbox/blob/master/src/tbox/libc/stdlib/mbstowcs.c |
Adjust it here and check whether you have enabled |
加上
应该缺 |
After adding
The |
这个是demo包的问题,用xrepo里的包应该没问题 |
This is a problem with the demo package. It should be fine if you use the package in xrepo. |
user32 我加上了 |
user32 I added |
描述问题
开启force-utf8选项后,tb_file_init仍然假定传入的路径以当前平台的OEM编码,而windows平台下则假定为utf8,因此同样的路径在mingw下生成乱码。
期待的结果
mingw平台的行为和windows平台一致,不输出乱码。
错误信息
在mingw平台下生成文件名
娴嬭瘯
,在Windows下生成文件名测试
。相关环境
mingw@mingw-w64 8.1.0
其他信息
无
The text was updated successfully, but these errors were encountered: