Hi

On Sat, Jun 11, 2011 at 1:00 AM, Nobuyoshi Nakada <nobu / ruby-lang.org> wrot=
e:
>
> Issue #4869 has been updated by Nobuyoshi Nakada.
>
> Status changed from Assigned to Closed

This issue has been marked as closed 2 months ago but 1.9.2p290 is
still showing the issue.

Did this get missed for p290 or was it planned for a later release?

$ ruby1.9.2 -v -e 'p 2206368128.chr(Encoding::UTF_8)'
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin10.8.0]
-e:1:in `chr': -2088599168 out of char range (RangeError)
	from -e:1:in `<main>'

Thanks,
Brian

>
> fixed.
> ----------------------------------------
> Bug #4869: 2206368128.chr(Encoding::UTF_8) fails strangely
> http://redmine.ruby-lang.org/issues/4869
>
> Author: Hal Brodigan
> Status: Closed
> Priority: Normal
> Assignee: Yui NARUSE
> 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 cha=
racters, I noticed one number failed to decode:
>
> =A0 =A02206368128.chr(Encoding::UTF_8)
> =A0 =A0# =3D> RangeError: -2088599168 out of char range
>
> The negative number within the exception makes me wonder if an Integer Ov=
erflow is occurring within the M17N code.
>
>
> --
> http://redmine.ruby-lang.org
>
>