Skip to content

Commit

Permalink
Fix testDecode_Backspace (#15034)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbumenJ authored Jan 5, 2025
1 parent ccb23f0 commit 713388a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ void testDecode_Backspace() throws IOException {
testDecode_assertEquals(new byte[] {'\b'}, Codec2.DecodeResult.NEED_MORE_INPUT, new String(new byte[] {32, 8}));

// test chinese
byte[] chineseBytes = "中".getBytes();
byte[] chineseBytes = "中".getBytes(StandardCharsets.UTF_8);
byte[] request = join(chineseBytes, new byte[] {'\b'});
testDecode_assertEquals(request, Codec2.DecodeResult.NEED_MORE_INPUT, new String(new byte[] {32, 32, 8, 8}));
// There may be some problem handling chinese (negative number recognition). Ignoring this problem, the
Expand Down

0 comments on commit 713388a

Please sign in to comment.