From: Eric Hodel Date: 2011-02-08T04:50:20+09:00 Subject: [ruby-core:35141] [Ruby 1.9-Bug#4380][Open] Encoding of result string for String#gsub! is not consistent for BINARY Bug #4380: Encoding of result string for String#gsub! is not consistent for BINARY http://redmine.ruby-lang.org/issues/show/4380 Author: Eric Hodel Status: Open, Priority: Normal Category: core ruby -v: ruby 1.9.3dev (2011-02-07 trunk 30814) [x86_64-darwin10.6.0] When String#gsub! is called on a string in BINARY encoding the encoding may be changed to the replacement encoding. Attached is a test patch. ---------------------------------------- http://redmine.ruby-lang.org