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

Powershell echo of higher unicode crashes PipelineOutput.extract_out_string #282

Open
cork opened this issue Feb 27, 2018 · 0 comments
Open

Comments

@cork
Copy link

cork commented Feb 27, 2018

shell = conn.shell(:powershell)
shell.run("echo 🌓")
Traceback (most recent call last):
       16: from /tmp/test/.bundle/ruby/2.5.0/gems/winrm-2.2.3/lib/winrm/wsmv/receive_response_reader.rb:65:in `read_response'
       15: from /tmp/test/.bundle/ruby/2.5.0/gems/winrm-2.2.3/lib/winrm/wsmv/receive_response_reader.rb:119:in `read_streams'
       14: from /tmp/test/.bundle/ruby/2.5.0/gems/winrm-2.2.3/lib/winrm/wsmv/receive_response_reader.rb:119:in `each'
       13: from /tmp/test/.bundle/ruby/2.5.0/gems/winrm-2.2.3/lib/winrm/wsmv/receive_response_reader.rb:121:in `block in read_streams'
       12: from /tmp/test/.bundle/ruby/2.5.0/gems/winrm-2.2.3/lib/winrm/wsmv/receive_response_reader.rb:66:in `block in read_response'
       11: from /tmp/test/.bundle/ruby/2.5.0/gems/winrm-2.2.3/lib/winrm/psrp/receive_response_reader.rb:45:in `block in read_message'
       10: from /tmp/test/.bundle/ruby/2.5.0/gems/winrm-2.2.3/lib/winrm/psrp/receive_response_reader.rb:63:in `block (2 levels) in read_output'
        9: from /tmp/test/.bundle/ruby/2.5.0/gems/winrm-2.2.3/lib/winrm/psrp/powershell_output_decoder.rb:33:in `decode'
        8: from /tmp/test/.bundle/ruby/2.5.0/gems/winrm-2.2.3/lib/winrm/psrp/powershell_output_decoder.rb:51:in `decode_pipeline_output'
        7: from /tmp/test/.bundle/ruby/2.5.0/gems/winrm-2.2.3/lib/winrm/psrp/message_data/pipeline_output.rb:25:in `output'
        6: from /tmp/test/.bundle/ruby/2.5.0/gems/winrm-2.2.3/lib/winrm/psrp/message_data/pipeline_output.rb:32:in `extract_out_string'
        5: from /tmp/test/.bundle/ruby/2.5.0/gems/winrm-2.2.3/lib/winrm/psrp/message_data/pipeline_output.rb:32:in `map'
        4: from /tmp/test/.bundle/ruby/2.5.0/gems/winrm-2.2.3/lib/winrm/psrp/message_data/pipeline_output.rb:35:in `block in extract_out_string'
        3: from /tmp/test/.bundle/ruby/2.5.0/gems/winrm-2.2.3/lib/winrm/psrp/message_data/pipeline_output.rb:35:in `gsub'
        2: from /tmp/test/.bundle/ruby/2.5.0/gems/winrm-2.2.3/lib/winrm/psrp/message_data/pipeline_output.rb:36:in `block (2 levels) in extract_out_string'
        1: from /tmp/test/.bundle/ruby/2.5.0/gems/winrm-2.2.3/lib/winrm/psrp/message_data/pipeline_output.rb:36:in `chr'
RangeError (55356 out of char range)
@cork cork changed the title Powershell echo of higher unicode crashes read_streams Powershell echo of higher unicode crashes PipelineOutput.extract_out_string Feb 27, 2018
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

Successfully merging a pull request may close this issue.

1 participant