Actions
Bug #8496
closedString#b does not check the code range properly
Description
Currently "abc".b.ascii_only? returns false, which should be true.
Files
Actions
Like0
Like0Like0Like0
Added by knu (Akinori MUSHA) almost 12 years ago. Updated almost 12 years ago.
Description
Currently "abc".b.ascii_only? returns false, which should be true.
Files
0001-string.c-String-b-Check-the-code-range-so-ascii_only.patch (1.67 KB) 0001-string.c-String-b-Check-the-code-range-so-ascii_only.patch | knu (Akinori MUSHA), 06/05/2013 09:35 PM |
A patch is attached.
This problem also applies to ruby_2_0_0.
coderange_scan may cost too much time, so commit it with ENC_CODERANGE_CLEAR(str);.
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.