Issue #2054 has been updated by Yui NARUSE.

Status changed from Open to Assigned
Assigned to set to Yui NARUSE

Looking overt this, yes, your patch is along the right lines.

But some comments following:

+ *      "Go to ÅìµþÅÔ".match(/\s\u{6771 4eac 90fd}/)
Your patch includes some non-ASCII characters.
But Ruby's C source should be in ASCII.

+ *      'haystack' =~ /hay/   #=> 0
/hay/ =~ 'haystack' is Ruby's style, bacause matching is Regexp's function.
String#match is also the same.

+ *  * <tt>/pat/n</tt> - US-ASCII
/n is ASCII-8BIT.
And these options also set Regexp::FIXED_ENCODING or ARG_ENCODING_NONE.
see [ruby-core:23193] more information.
----------------------------------------
http://redmine.ruby-lang.org/issues/show/2054

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