-
Notifications
You must be signed in to change notification settings - Fork 626
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
Unicode file names aren't recognized #1837
Comments
Works for me:
What operating system are you running on, and what version ctags? |
OS: Windows 10 (Version 10.0.17134 Build 17134)
|
This is a long-standing issue on Windows. |
do you want to support this or not ? |
I want to support it but I don't know how to do it. |
Basically, we need to modify everywhere we handle filenames. |
How long will you take to fix this issue? |
@k-takata, thank you. Now I understand the meaning of "a hard work". |
@Lennon925, I'm sorry but I have no plan to fix this. |
As the first step, we have to add a test cast to Tmain. |
@k-takata, I tried a file having Japanese character as input for ctags on msys-2. |
On Japanese Windows, we can use Japanese characters, however, characters that cannot be represented by Shift_JIS (e.g. alphabets with diacritical mark, simplified Chinese characters, ...) cannot be used on Japanese Windows. Similarly, Japanese characters cannot be used on English Windows. A workaround is using Cygwin (or MSYS2) version of u-ctags instead of Win32 version. It handles the filenames in UTF-8. |
Hi k-takata, Regards, |
As I already said, it's very difficult to fix, and I don't have a plan to fix it yet. |
Starting from Windows 10 1903, UTF-8 code page can be used by specifying application manifest file. |
@k-takata, I think this is a kind of FAQ. How do you think? |
Ah, maybe. |
If #2360 is merged, it will be like this?
|
YES! THAK YOU VERY MUCH. Your comment lets me realize how the ctags-faq.7.rst to be.
|
If the section is for Windows, the first and second sentences of the answer needs to be adjusted. (edited) A. Partly yes. If you use Windows 10 version 1903 or later, Universal Ctags can use Unicode file names. (This is an experimental feature, though.) |
This should be fixed by #2360 (on Windows 10 1903 or later). |
@k-takata, you wrote:
However, it seems that you have written the code fixing for this issue a few day :-)
|
Actually, Microsoft did a job, not me. ;-) |
BTW, this fix has a restriction. |
Running ctags on Unicode file names fails to open them.
Example
For a file called:
こんにちは世界.txt
Running:
ctags --options=NONE *
Will produce:
The text was updated successfully, but these errors were encountered: