ruby/test
John Hawthorn a51a6bf692
[Bug #20883] Fix coderange for sprintf on binary strings (#12040)
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>
2024-11-09 01:00:13 -08:00
..
-ext- merge revision(s) 76ea5cde2a: [Backport #20777] 2024-11-04 14:29:25 -08:00
.excludes M:N thread scheduler for Ractors 2023-10-12 14:47:01 +09:00
base64
benchmark
bigdecimal
cgi [ruby/cgi] Add failing test cases for CGI::Escape.unescapeHTML 2023-11-30 08:19:28 +00:00
coverage Fix method coverage comparisons 2023-10-16 09:48:05 +09:00
csv [ruby/csv] Add CSV::InvalidEncodingError 2023-10-03 16:13:18 +09:00
date
did_you_mean
digest
drb [ruby/drb] Support :SSL{Min,Max}Version config options 2023-10-18 21:13:21 +00:00
dtrace
erb
error_highlight
etc
fiber Ensure fiber scheduler is woken up when close interrupts read 2024-09-23 09:25:10 -07:00
fiddle [ruby/fiddle] Use Ruby's true/false for C bool 2023-11-08 09:25:44 +09:00
fileutils
io Skip an unstable test on MinGW 2023-12-13 09:40:54 -08:00
irb [Bug #20511] Update reline-0.5.7 (#10848) 2024-05-28 15:54:39 -07:00
json Merge JSON 2.7.2 for Ruby 3.3 (#11541) 2024-09-04 08:47:06 -07:00
lib Skip a test that is flaky with RJIT 2023-11-03 22:18:16 -07:00
logger
mkmf
monitor ensure to restart antoher thread 2023-12-23 05:56:02 +09:00
net Skip tests that suddenly started failing for MinGW 2024-11-04 16:00:11 -08:00
nkf
objspace Skip a flaky objspace test on Visual Studio 2023-12-07 09:42:56 -08:00
open-uri [ruby/open-uri] Set default for max_redirects and add exception class 2023-12-07 07:00:54 +00:00
openssl Skip tests that suddenly started failing for MinGW 2024-11-04 16:00:11 -08:00
optparse
ostruct
pathname
prism Revert all of commits after Prism 0.19.0 release 2023-12-16 11:08:51 +08:00
psych [ruby/psych] Use assert_same in tests where applicable 2023-12-19 11:07:46 +09:00
rdoc [ruby/rdoc] Only word-ending colon separates new definition 2023-12-06 09:35:44 +00:00
reline Merge reline-0.5.10 (#11558) 2024-09-05 17:55:34 -07:00
resolv [ruby/resolv] Close leaked FD 2023-11-26 01:07:21 +00:00
rinda
ripper merge revision(s) 97449338d6: [Backport #20649] 2024-09-02 03:07:09 -07:00
ruby [Bug #20883] Fix coderange for sprintf on binary strings (#12040) 2024-11-09 01:00:13 -08:00
rubygems Merge RubyGems-3.5.22 and Bundler-2.5.22 2024-10-17 08:55:01 -07:00
set
socket [Bug #20208] Revert "Set AI_ADDRCONFIG when making getaddrinfo(3) calls for outgoi… (#9791) 2024-03-14 16:27:05 +00:00
stringio [ruby/stringio] Add missing row separator encoding conversion 2023-11-08 00:46:17 +00:00
strscan merge revision(s) f54369830f, 338eb0065b, ac636f5709: [Backport #20516] 2024-06-04 13:14:09 -07:00
syslog
uri
win32ole
yaml
zlib merge revision(s) 9f8f32bf9f: [Backport #20289] 2024-05-29 11:35:23 -07:00
runner.rb Refactor the settings of test-all out 2023-11-15 19:27:10 +09:00
test_abbrev.rb
test_bundled_gems.rb bundled_gems.rb: Add a fast path (#11221) 2024-07-22 16:35:22 -07:00
test_delegate.rb
test_extlibs.rb
test_find.rb
test_forwardable.rb
test_getoptlong.rb
test_ipaddr.rb
test_mutex_m.rb
test_observer.rb
test_open3.rb
test_pp.rb
test_prettyprint.rb
test_pstore.rb
test_pty.rb
test_rbconfig.rb
test_securerandom.rb
test_shellwords.rb
test_singleton.rb
test_syslog.rb
test_tempfile.rb [ruby/tempfile] Make Tempfile#open return the underlying File 2023-11-08 16:47:29 +00:00
test_time.rb
test_timeout.rb Prevent a warning: assigned but unused variable - raised_exception 2023-11-08 15:39:19 +09:00
test_tmpdir.rb
test_trick.rb
test_tsort.rb
test_unicode_normalize.rb
test_weakref.rb