A
Ammar Ali
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
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