Skip to content

Regexp fixed encoding should raise SyntaxError if source encoding doesn't match a fixed one #2667

@andrykonchin

Description

@andrykonchin

I just noticed this CRuby behaviour and it seems Parser doesn't support it right now:

p /Ȃ/e.encoding
# regexp encoding option 'e' differs from source encoding 'UTF-8' (SyntaxError)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions