String#b does not check the code range properly
ruby 2.1.0dev (2013-06-05 trunk 41090) [x86_64-freebsd9]
Currently "abc".b.ascii_only? returns false, which should be true.
Updated by knu (Akinori MUSHA) about 7 years ago
- Status changed from Open to Closed
- % Done changed from 0 to 100
This issue was solved with changeset r41092.
Akinori, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
- string.c (String#b): Allow code range scan to happen later so ascii_only? on a result string returns the correct value. [ruby-core:55315] [Bug #8496]