Skip to content

Commit

Permalink
Test decoding UTF-16 bithout BOM
Browse files Browse the repository at this point in the history
  • Loading branch information
nalimilan committed Jan 13, 2016
1 parent 73764a7 commit 2396e6a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ using iconv
@show encode("café", "UTF-16LE")
@show encode("café", "UTF-16BE")

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

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

0 comments on commit 2396e6a

Please sign in to comment.