Actions
Bug #563
closedRegexp::escape is not Encoding Aware
Bug #563:
Regexp::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
Updated by ko1 (Koichi Sasada) about 17 years ago
- Assignee set to naruse (Yui NARUSE)
=begin
=end
Updated by ko1 (Koichi Sasada) about 17 years ago
- Status changed from Open to Closed
=begin
=end
Actions