Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IO::Socket::INET.get returns binary string #3021

Closed
p6rt opened this issue Jan 4, 2013 · 4 comments
Closed

IO::Socket::INET.get returns binary string #3021

p6rt opened this issue Jan 4, 2013 · 4 comments

Comments

@p6rt
Copy link

p6rt commented Jan 4, 2013

Migrated from rt.perl.org#116302 (status was 'resolved')

Searchable as RT116302$

@p6rt
Copy link
Author

p6rt commented Jan 4, 2013

From @bbkr

There was socket behavior change between 2012.11 and 2012.12.

For example sending euro sign through sockets

perl6 -e 'my $listener = IO​::Socket​::INET.new( localhost => "", localport => 8080, :listen ); while my $connection = $listener.accept( ) { $connection.send( "\x[20ac]\r\n" ); $connection.close( ); }'

On 2012.11 works
perl6 -e 'my $client = IO​::Socket​::INET.new( host => "localhost", port => 8080 ); my $inc = $client.get; say $inc.uc'

On 2012.12 breaks
perl6 -e 'my $client = IO​::Socket​::INET.new( host => "localhost", port => 8080 ); my $inc = $client.get; say $inc.uc'
Invalid operation on binary string
  in method uc at src/gen/CORE.setting​:2206
  in block at -e​:1

@p6rt
Copy link
Author

p6rt commented Jan 24, 2013

From @FROGGS

It works with latest commit by today.

@p6rt
Copy link
Author

p6rt commented Jan 24, 2013

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Jan 24, 2013

@moritz - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed Jan 24, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant