File tree Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -53,14 +53,18 @@ catch err
53
53
" iconv error: byte sequence 0xc3a9e282ac is invalid in source encoding or cannot be represented in target encoding"
54
54
end
55
55
56
- @test_throws ErrorException decode (" qwertyé€" . data, " ASCII" )
57
- try
58
- decode (" qwertyé€" . data, " ASCII" )
59
- catch err
60
- io = IOBuffer ()
61
- showerror (io, err)
62
- @test takebuf_string (io) ==
63
- " iconv error: byte sequence 0xc3a9e282ac is invalid in source encoding or cannot be represented in target encoding"
56
+ # win_iconv currently does not throw an error on bytes >= 0x80 in ASCII sources
57
+ # https://github.com/win-iconv/win-iconv/pull/26
58
+ if OS_NAME != :Windows
59
+ @test_throws ErrorException decode (" qwertyé€" . data, " ASCII" )
60
+ try
61
+ decode (" qwertyé€" . data, " ASCII" )
62
+ catch err
63
+ io = IOBuffer ()
64
+ showerror (io, err)
65
+ @test takebuf_string (io) ==
66
+ " iconv error: byte sequence 0xc3a9e282ac is invalid in source encoding or cannot be represented in target encoding"
67
+ end
64
68
end
65
69
66
70
mktemp () do p, io
You can’t perform that action at this time.
0 commit comments