Skip to content

irb fails when exception has invalid unicode in message #141

@onlynone

Description

@onlynone

Description

Running the following should print out the error, not a different error from irb itself:

raise StandardError, "\xf3"

But, what I actually get is:

Traceback (most recent call last):
        4: from /usr/local/opt/ruby@2.6/bin/irb:23:in `<main>'
        3: from /usr/local/opt/ruby@2.6/bin/irb:23:in `load'
        2: from /usr/local/lib/ruby/gems/2.6.0/gems/irb-1.2.7/exe/irb:11:in `<top (required)>'
        1: from (irb):1
IRB Bug!

Terminal Emulator

Terminal.app

Setting Files

No settings files

Versions

irb(main):010:0> IRB::VERSION
=> "1.2.7"
irb(main):011:0> RUBY_VERSION
=> "2.6.6"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions