mirror of
https://github.com/github/codeql.git
synced 2026-04-24 08:15:14 +02:00
Add test for extraction of a Java file with a non-UTF-8 charset
This commit is contained in:
committed by
Chris Smowton
parent
be6162edc0
commit
9162ce7d73
@@ -0,0 +1,3 @@
|
||||
Test.java:
|
||||
# 0| [CompilationUnit] Test
|
||||
# 1| 1: [Class] Test
|
||||
@@ -0,0 +1 @@
|
||||
semmle/code/java/PrintAst.ql
|
||||
4
java/ql/test/library-tests/comment-encoding/Test.java
Normal file
4
java/ql/test/library-tests/comment-encoding/Test.java
Normal file
@@ -0,0 +1,4 @@
|
||||
public class Test {
|
||||
}
|
||||
|
||||
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
1
java/ql/test/library-tests/comment-encoding/options
Normal file
1
java/ql/test/library-tests/comment-encoding/options
Normal file
@@ -0,0 +1 @@
|
||||
//semmle-extractor-options: --encoding GBK
|
||||
@@ -0,0 +1 @@
|
||||
| Test.java:4:1:4:7 | // \u4f60\u597d\u4e16\u754c |
|
||||
4
java/ql/test/library-tests/comment-encoding/toString.ql
Normal file
4
java/ql/test/library-tests/comment-encoding/toString.ql
Normal file
@@ -0,0 +1,4 @@
|
||||
import java
|
||||
|
||||
from Javadoc c
|
||||
select c
|
||||
Reference in New Issue
Block a user