From: "brixen (Brian Ford)" <brixen@...>
Date: 2013-01-03T03:37:52+09:00
Subject: [ruby-core:51222] [ruby-trunk - Bug #7566] Escape (\u{}) forms in Regexp literals


Issue #7566 has been updated by brixen (Brian Ford).


But as my example shows, if the bytes were in a literal String used to create the Regexp, they are already converted. And everything works just fine.

What's the rationale for not converting \u{}? Just because it is *an* escape sequence doesn't mean it is a *Regexp* escape sequence. Why are they treated the same? It creates inconsistency between two identical Regexps except that one came from a String or Regexp literal with interpolation.
----------------------------------------
Bug #7566: Escape (\u{}) forms in Regexp literals
https://bugs.ruby-lang.org/issues/7566#change-35182

Author: brixen (Brian Ford)
Status: Rejected
Priority: Normal
Assignee: 
Category: core
Target version: 2.0.0
ruby -v: ruby 1.9.3p327 (2012-11-10 revision 37606) [x86_64-darwin10.8.0]


Why are \u{} escape sequences in Regexp literals not converted to bytes like they are in String literals?

https://gist.github.com/4290155

Thanks,
Brian


-- 
http://bugs.ruby-lang.org/