|
From: | Johnny Cheng |
Subject: | gtags bug report: issue with S-JIS encoding files |
Date: | Fri, 17 Nov 2023 11:29:44 +0900 |
Hi, I found that if a file contains a specific CJK characters sequence, the parser seems fail to continue parsing the file. See the follow example source file, let’s say `test.c` in encoding of Shift-JIS (cp932).
(In case of mojibake due to encoding issue for Kanji, screenshots are also provided below.)
Now if you run `gtags` command in same folder follow by `global -f test.c`, you only get one tag, which is `Foo`, but `Hello` shall also be found.
However, if I modify the source a little bit, then tag `Hello` is found. See variations I tried in the table below. Cases Table
My environment
Possible Solutions
Also, if such case happens, at least print out some error message to inform user that some files are not fully parsed. Johnny Cheng |
[Prev in Thread] | Current Thread | [Next in Thread] |