From: Heesob Park Date: 2009-07-30T11:42:38+09:00 Subject: [ruby-core:24603] [Feature #1835] 0x80.chr not equal to "\x80" Feature #1835: 0x80.chr not equal to "\x80" http://redmine.ruby-lang.org/issues/show/1835 Author: Heesob Park Status: Open, Priority: Normal Category: core, Target version: 1.9.1 I suggest 0x80.chr should be equal to "\x80" regardless of locale. Here is the current behavior: irb(main):001:0> 0x80.chr.encoding => # irb(main):002:0> "\x80".encoding => # irb(main):003:0> 0x80.chr=="\80" => false irb(main):004:0> h={} => {} irb(main):005:0> h[0x80.chr]=1 => 1 irb(main):006:0> h["\x80"]=2 => 2 irb(main):007:0> h => {"\x80"=>1, "\x80"=>2} ---------------------------------------- http://redmine.ruby-lang.org