Project

General

Profile

Backport #3633

Updated by jeremyevans0 (Jeremy Evans) almost 5 years ago

=begin 
  
  Example irb session: 
 
  irb(main):001:0> __ENCODING__ 
  => #<Encoding:UTF-8> 
  irb(main):002:0> a = "x" * 42 
  => "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" 
  irb(main):003:0> a[a.length,a.length] 
  => "" 
  irb(main):004:0> a = "ü" * 42 
  => "üüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüü" 
  irb(main):005:0> a[a.length,a.length] 
  => "\x00\x00\x00\x00A\x00\x00\x00\x00\x00\x00\x00" <------------- What is that? 
 
  It seems that only the [Fixnum, Fixnum] accessor is affected but I will test the others too. 
 
 =end 
 

Back