sergot / openssl

OpenSSL bindings for Perl 6
MIT License
14 stars 31 forks source link

work around malformed utf-8 in test; s/decode/unpack/ #8

Closed ugexe closed 9 years ago

ugexe commented 9 years ago

.decode defaults to utf-8, and I started getting a malformed utf-8 error during 02-socket.t

.unpack('A*')
.decode('latin-1') 
$buf[^$buf.elems]>>.chr.join

seem to all be ok solutions for now.

Malformed UTF-8 at line 1 col 210
  in method decode at src/gen/m-CORE.setting:6314
  in method read at /home/nickl/perl6/openssl/lib/OpenSSL.pm6:178
  in block <unit> at t/02-socket.t:15

It is strange though, because that test was passing for me yesterday.

sergot commented 9 years ago

Thanks! Looks fine to me. :)