From: Yui NARUSE Date: 2010-01-25T16:42:45+09:00 Subject: [ruby-core:27785] [Bug #2636](Closed) Incorrect UTF-16 string length Issue #2636 has been updated by Yui NARUSE. Status changed from Rejected to Closed > My main concern was that what #length and #[] were doing was different. > If s[0], s[1], s[2] would have been returning "\xDC", "\x{BD8}" and > "\x40" it would have been consistent. But s[2] was returning nil even > though s.length was 3. Ah, I see. Current behavior seems correct. ---------------------------------------- http://redmine.ruby-lang.org/issues/show/2636 ---------------------------------------- http://redmine.ruby-lang.org