From: Michael Selig Date: 2008-09-24T17:04:11+09:00 Subject: [ruby-core:18844] [Bug #592] String#rstrip sometimes strips NULLs, sometimes doesn't - encoding dependent 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