diff options
| author | John Hawthorn <john@hawthorn.email> | 2024-10-22 19:22:37 -0700 |
|---|---|---|
| committer | John Hawthorn <john@hawthorn.email> | 2024-11-08 17:39:19 -0800 |
| commit | 1f6dd9071c7994dd639d2e1cf2fe04e944173f17 (patch) | |
| tree | ac3f3a64b413d7bf6b0a6aa0fb9be5d7a8cd7e0d /include/ruby/ruby.h | |
| parent | 51ffef281996727c60571771cd07c1459ba58cd2 (diff) | |
Fix update_coderange for binary strings
Although a binary (aka ASCII-8BIT) string will never have a broken
coderange, it still has to differentiate between "valid" and "7bit".
On Ruby 3.4/trunk this problem is masked because we now clear the
coderange more agressively in rb_str_resize, and we happened to always
be strinking this string, but we should not assume that.
On Ruby 3.3 this created strings where `ascii_only?` was true in cases
it shouldn't be as well as other problems.
Fixes [Bug #20883]
Co-authored-by: Daniel Colson <danieljamescolson@gmail.com>
Co-authored-by: Matthew Draper <matthew@trebex.net>
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/12029
Diffstat (limited to 'include/ruby/ruby.h')
0 files changed, 0 insertions, 0 deletions
