Project

General

Profile

Actions

Bug #22705

open

parse.y: regx_options fails to clear kcode when n overrides an earlier encoding option (/sn)

Bug #22705: parse.y: regx_options fails to clear kcode when n overrides an earlier encoding option (/sn)

Added by steviejj (Steven Johnstone) about 15 hours ago.

Status:
Open
Assignee:
-
Target version:
-
[ruby-core:127802]

Description

  # coding: binary
  / #{"\xcd"}/sn
  • parse.y: SyntaxError: regexp encoding option 's' differs from source encoding 'ASCII-8BIT'.
  • prism: Syntax OK (exits 0; static /\xcd/sn is accepted by both parsers).

No data to display

Actions

Also available in: PDF Atom