-
Notifications
You must be signed in to change notification settings - Fork 629
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
Failed to open file with unicode name longer than 4 #3014
Comments
Please use the issue template. |
Sorry for duplicate submission due to network issues. The name of the parser: The command line you used to run ctags:
All the input files are empty. No output content, e.g. no file Outputs in the command prompt are:
For filename less than 4 characters (without the extension), it works well, while for filenames longer than 4, it fails, and it seems that the filename it tries to read is messy code. The version of ctags:
How do you get ctags binary: Download from ctags-win32 Platform:
|
It seems that msvcrt.dll's BTW, I found another issue in the MinGW builds that |
It seems that this is caused by a limitation of the The filename The The A possible workaround on the user-side is to disable the 8.3 filenames by using the |
Thanks for your detailed explanation. I just tried with
Is it possible by converting the filename(s) with |
I have confirmed that removing the short filenames in the current directory using
No. The correct way to fix this is to covert the filenames to UTF-16 and use the Wide APIs. |
Use CLANG{32,64} to use UCRT for the runtime library. Hopefully, this solves universal-ctags/ctags#3014. Note that msys2.org doesn't provide UCRT32 environment now.
Use CLANG{32,64} to use UCRT for the runtime library. Hopefully, this solves universal-ctags/ctags#3014. Note that msys2.org doesn't provide UCRT32 environment now.
Use CLANG{32,64} to use UCRT for the runtime library. Hopefully, this solves universal-ctags/ctags#3014. Note that msys2.org doesn't provide UCRT32 environment now.
I added CLANG{32,64} binaries to ctags-win32. So, this shouldn't be occurred when they are used. Closing. |
The file is encoded in cp936, and when the filename is short as
文件.cpp
or long ascii name, it works well.However, when the filename is in unicode, it fails. Sometimes for3,4 or longer names.
I can figure out why, and this maybe a bug?
The text was updated successfully, but these errors were encountered: