Skip to content

Commit

Permalink
Handle UTF-16 / UTF-32 with leading null byte
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Widdis <[email protected]>
  • Loading branch information
dbwiddis committed Dec 8, 2023
1 parent 5381104 commit fef6032
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/it/charset/src/test/java/CharsetTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ class CharsetTests {

@Test
void outputSomething() throws Exception {
// The degree sign (hex b0) will be prepended by 2c in UTF-8
// For ISO output check for optional  (hex 2c) character
System.out.println("UTF-8 degree sign is °");
}
}
2 changes: 1 addition & 1 deletion src/it/charset/verify.bsh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ verifier.verifyLogMatches(new String[] {
">> BEGIN >>",
"[INFO] Launching JUnit Platform " + junitPlatformVersion + "...",
">> Platform executes tests...>>",
"\\Q[INFO]\\E UTF-8 degree sign is °",
"\\Q[INFO]\\E UTF-8 degree sign is Â?°",
">> Platform executes tests...>>",
"[INFO] BUILD SUCCESS",
">> END. >>"
Expand Down

0 comments on commit fef6032

Please sign in to comment.