Skip to content
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

Fix potential crash issues on Windows #2568

Merged
merged 2 commits into from Mar 15, 2024
Merged

Fix potential crash issues on Windows #2568

merged 2 commits into from Mar 15, 2024

Conversation

CppCXY
Copy link
Contributor

@CppCXY CppCXY commented Mar 14, 2024

windows上由于文件读取接口通常只支持ansi编码的路径, 如果是utf8编码的文件路径可能会找不到文件, 格式化库在读取中文路径下的.editorconfig时会找不到文件,后续逻辑也没有判空从而引发崩溃.
通过在windows下把utf8编码转为宽字符路径来解决windows下的中文目录的读取问题

@sumneko sumneko merged commit d94bddc into LuaLS:master Mar 15, 2024
1 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants