Actions
Backport #3633
closedString accessor [Fixnum, Fixnum] produces wrong result in 1.9.1
Status:
Closed
Assignee:
Description
=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
Updated by nobu (Nobuyoshi Nakada) over 14 years ago
- Category set to core
- Status changed from Open to Assigned
- Assignee set to yugui (Yuki Sonoda)
- Priority changed from 5 to Normal
=begin
=end
Updated by jeremyevans0 (Jeremy Evans) over 5 years ago
- Description updated (diff)
- Status changed from Assigned to Closed
Actions
Like0
Like0Like0