Issue #7575 has been reported by tadf (tadayoshi funaba).

----------------------------------------
Bug #7575: Struct ???<?潟????若????≪??祉?泣?у????с?с??????篋??????????
https://bugs.ruby-lang.org/issues/7575

Author: tadf (tadayoshi funaba)
Status: Open
Priority: Low
Assignee: 
Category: core
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2012-12-16 trunk 38415) [i686-linux]


Struct ???<?潟????若????≪??祉?泣?у????с?с??????篋?????????????

$ ruby -v -e 'Foo = Struct.new("Foo", "a", "b\000"); foo = Foo.new(1,2); p foo.send("a"); p foo.send("b\000")'
ruby 2.0.0dev (2012-12-16 trunk 38415) [i686-linux]
1
-e:1:in `<main>': undefined method `b' for #<struct Struct::Foo a=1, :"b\x00"=2> (NoMethodError)

$ ruby -v -r ostruct -e 'foo = OpenStruct.new("a"=>1, "b\000"=>2); p foo.send("a"); p foo.send("b\000")'
ruby 2.0.0dev (2012-12-16 trunk 38415) [i686-linux]
1
2



-- 
http://bugs.ruby-lang.org/