Actions
Bug #4382
closedEncoding of result string for String#gsub! is not consistent for BINARY
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.3dev (2011-02-07 trunk 30814) [x86_64-darwin10.6.0]
Backport:
Description
=begin
When String#sub! is called on a string in BINARY encoding the encoding may be changed to the replacement encoding.
This is due to rb_enc_compatible()
If this is a feature the documentation should be updated to indicate this.
Attached is a test patch.
=end
Files
Actions
Like0
Like0