Actions
Bug #647
closedSource encoding not applied to 7-bit regular expressions
    Bug #647:
    Source encoding not applied to 7-bit regular expressions
  
Description
=begin
encoding: utf-8¶
"cat".encoding # => #Encoding:UTF-8
"δδδ".encoding # => #Encoding:UTF-8
/cat/.encoding # => #Encoding:US-ASCII   # <<<<
:δδδ.encoding # => #Encoding:UTF-8
I was expecting the regular expression to be encoded the same way a
string is.
Matz: Yes, it's a bug.  Thank you.
=end
Actions