Skip to content

Commit 2396e6a

Browse files
committed
Test decoding UTF-16 bithout BOM
1 parent 73764a7 commit 2396e6a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/runtests.jl

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ using iconv
55
@show encode("café", "UTF-16LE")
66
@show encode("café", "UTF-16BE")
77

8-
@show decode([0x81], "CP1252")
8+
@show decode(encode("café", "UTF-16BE"), "UTF-16")
9+
@show decode(encode("café", "UTF-16LE"), "UTF-16")
910

1011
for s in ("", "a", "café crème",
1112
"a"^(iconv.BUFSIZE-1) * "€ with an incomplete codepoint between two input buffer fills",

0 commit comments

Comments
 (0)