From: "ara.t.howard" Date: 2010-10-30T23:33:52+09:00 Subject: Re: Range of hex values? you are relying on String#succ! there. read the docs to understand why it is not what you want. On Oct 30, 3:33 am, Ammar Ali wrote: > Hello, > > In 1.8.[67] the following range does not produce what I expected: > >   ("\x00".."\x7F").to_a > > It only produces the characters between \x00 and \x39, while in > 1.9.[12] it produces the full expected range. > I'm curious if this would be considered a bug, intentional, or I'm > missing something? > > A workaround that does the right thing in all versions: > >   (0..127).to_a.map {|c| c.chr} > > Regards, > Ammar