Project

General

Profile

Actions

Bug #18160

closed

IndexError raised from MatchData#{offset,begin,end} does not keep the encoding of the argument

Added by nobu (Nobuyoshi Nakada) over 2 years ago. Updated over 2 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:105204]

Description

m = /.*/.match("foo")
m.offset("\u{3042}") rescue p $!.message
#=> "undefined group name reference: \xE3\x81\x82"
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0