Skip to content

Missing EncodingError for Symbol literal with invalid encoding #2129

Closed

Description

@andrykonchin

Looks like CRuby checks this at parsing time:

ruby -c -e ':"\xC3"'
ruby: invalid symbol in encoding UTF-8 :"\xC3" (EncodingError)

Activity

  1. added
    bug
    on Jan 3, 2024
  2. added this to the Ruby 3.3.1 milestone on Jan 3, 2024
  3. added
    language specs
    on Jan 11, 2024
  4. eregon commented on Feb 21, 2024

    @eregon
    Member

    This also caused some IRB tests to fail: ruby/irb#854
    Also some occurrences in ruby/spec and test-all mentioned by @enebo in #2472.

  5. enebo commented on Feb 21, 2024

    @enebo
    Collaborator

    @eregon @andrykonchin Of course it would be nice if this is fixed but it is worked around pretty easily by just doing a CR scan and look for broken. Then you can remove those omit's and when it is fixed only delete something from your own source.

  6. kddnewton commented on May 8, 2024

    @kddnewton
    Collaborator

    This should be fixed on main.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buglanguage specs

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions