Issue #4869 has been reported by Hal Brodigan. ---------------------------------------- Bug #4869: 2206368128.chr(Encoding::UTF_8) fails strangely http://redmine.ruby-lang.org/issues/4869 Author: Hal Brodigan Status: Open Priority: Normal Assignee: Category: M17N Target version: ruby -v: ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-linux] While testing some code which attempted to decode integers into UTF-8 characters, I noticed one number failed to decode: 2206368128.chr(Encoding::UTF_8) # => RangeError: -2088599168 out of char range The negative number within the exception makes me wonder if an Integer Overflow is occurring within the M17N code. -- http://redmine.ruby-lang.org