Actions
Bug #563
closedRegexp::escape is not Encoding Aware
Description
=begin
Escaping an encoded String can damage the encoding:
s = "+"
=> "+"
s.encode!("UTF-16BE")
=> "\x00+"
re = Regexp.escape(s)
=> "\+"
re.encoding
=> #Encoding:UTF-16BE
=end
Actions
Like0
Like0Like0