Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge remote branch 'remotes/origin/parrot-iocleanup1' into nom

  • Loading branch information...
commit e09fbe68707707004d1111dba7b0b6fb9e100541 2 parents 5b56cfc + d0dc2d3
@moritz moritz authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  src/core/IO/Socket/INET.pm
View
2  src/core/IO/Socket/INET.pm
@@ -16,6 +16,7 @@ my class IO::Socket::INET does IO::Socket {
constant PROTO_UDP = 17;
}
+ has Str $.encoding = 'utf8';
has Str $.host;
has Int $.port = 80;
has Str $.localhost;
@@ -76,6 +77,7 @@ my class IO::Socket::INET does IO::Socket {
$PIO.bind($addr);
}
+ $PIO.encoding(nqp::unbox_s(PARROT_ENCODING(self.encoding)));
if $.listen {
$PIO.listen($.listen);
}
Please sign in to comment.
Something went wrong with that request. Please try again.