Add test for extraction of a Java file with a non-UTF-8 charset

This commit is contained in:
Chris Smowton
2025-02-19 22:23:12 +00:00
committed by Chris Smowton
parent be6162edc0
commit 9162ce7d73
6 changed files with 14 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
Test.java:
# 0| [CompilationUnit] Test
# 1| 1: [Class] Test

View File

@@ -0,0 +1 @@
semmle/code/java/PrintAst.ql

View File

@@ -0,0 +1,4 @@
public class Test {
}
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>

View File

@@ -0,0 +1 @@
//semmle-extractor-options: --encoding GBK

View File

@@ -0,0 +1 @@
| Test.java:4:1:4:7 | // \u4f60\u597d\u4e16\u754c |

View File

@@ -0,0 +1,4 @@
import java
from Javadoc c
select c