Bug #592: String#rstrip sometimes strips NULLs, sometimes doesn't - encoding dependent
http://redmine.ruby-lang.org/issues/show/592

Author: Michael Selig
Status: Open, Priority: Normal

ruby -ve 'p "abc   \x00\x00".rstrip'
ruby 1.9.0 (2008-09-24 revision 19507) [i686-linux]
"abc"

but:
ruby -ve 'p "\u0635abc   \x00\x00".rstrip'
ruby 1.9.0 (2008-09-24 revision 19507) [i686-linux]
"صabc   \x00\x00"


----------------------------------------
http://redmine.ruby-lang.org