Integer("2007".encode("UTF-16le"))
ArgumentError: string contains null byte
from (irb):209:in Integer' from (irb):209 from /Users/john/.rvm/rubies/ruby-1.9.3-p125/bin/irb:16:in
test_integer_utf_16(TestRubyLiteral) [/Users/drbrain/Work/svn/ruby/trunk/test/ruby/test_literal.rb:278]:
<"Invalid value for Integer(): "3.14 is π""> expected but was
<"invalid value for Integer(): "3.14 is \xCF\x80"">.
I'm not sure if this output is acceptable or not.
=end
This issue was solved with changeset r35120.
John, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
bignum.c (rb_str_to_inum): must be ASCII compatible encoding as
well as String#hex and String#oct. [ruby-core:43566][Bug #6192]
string.c (rb_must_asciicompat): check if ASCII compatible.