From: Brian Candler Date: 2009-07-30T19:59:08+09:00 Subject: [ruby-core:24616] [Bug #1836] Can change encoding on frozen String Issue #1836 has been updated by Brian Candler. Well, force_encoding raises an exception even if you specify the same one it already has: >> s = "abcd" => "abcd" >> s.freeze.force_encoding(s.encoding) RuntimeError: can't modify frozen string So your new behaviour would be consistent with that. Whether that's the desired behaviour is not really for me to decide. I guess it would be consistent with other null modify operations, such as >> s.strip! RuntimeError: can't modify frozen string >> s.tr!("f","f") RuntimeError: can't modify frozen string ---------------------------------------- http://redmine.ruby-lang.org/issues/show/1836 ---------------------------------------- http://redmine.ruby-lang.org