<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/sprintf.c, branch v3_3_11</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>merge revision(s) d71be7274bd2623bb521be72c245c08fc38d6ae4: [Backport #20873]</title>
<updated>2025-01-15T01:42:54+00:00</updated>
<author>
<name>Takashi Kokubun</name>
<email>takashikkbn@gmail.com</email>
</author>
<published>2025-01-15T01:42:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=1ec258ab7002210670171f3f2f0c4b39657e24a4'/>
<id>1ec258ab7002210670171f3f2f0c4b39657e24a4</id>
<content type='text'>
	[Bug #20873] Consider `-FIXNUM_MIN` overflow

	`-FIXNUM_MIN` is usually greater than `FIXNUM_MAX` on platforms using
	two's complement representation.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
	[Bug #20873] Consider `-FIXNUM_MIN` overflow

	`-FIXNUM_MIN` is usually greater than `FIXNUM_MAX` on platforms using
	two's complement representation.
</pre>
</div>
</content>
</entry>
<entry>
<title>[Bug #20883] Fix coderange for sprintf on binary strings (#12040)</title>
<updated>2024-11-09T09:00:13+00:00</updated>
<author>
<name>John Hawthorn</name>
<email>john@hawthorn.email</email>
</author>
<published>2024-11-09T09:00:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=a51a6bf6926241704593b9439e91c06ee6f3ee61'/>
<id>a51a6bf6926241704593b9439e91c06ee6f3ee61</id>
<content type='text'>
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 &lt;danieljamescolson@gmail.com&gt;
Co-authored-by: Matthew Draper &lt;matthew@trebex.net&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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 &lt;danieljamescolson@gmail.com&gt;
Co-authored-by: Matthew Draper &lt;matthew@trebex.net&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>[Bug #19167] Remove useless conversion of classes for special const</title>
<updated>2022-12-09T13:11:44+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2022-12-08T16:14:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=11acb7f7bcf6e80e03cf83bba863b9b3f980fdca'/>
<id>11acb7f7bcf6e80e03cf83bba863b9b3f980fdca</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Using UNDEF_P macro</title>
<updated>2022-11-16T09:58:33+00:00</updated>
<author>
<name>S-H-GAMELINKS</name>
<email>gamelinks007@gmail.com</email>
</author>
<published>2022-11-15T04:24:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=1f4f6c9832d83e7ebd65ccf4e95cef358b3512c6'/>
<id>1f4f6c9832d83e7ebd65ccf4e95cef358b3512c6</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[Bug #18973] Promote US-ASCII to ASCII-8BIT when adding 8-bit char</title>
<updated>2022-08-31T08:27:59+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2022-08-30T09:12:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=576bdec03f0d58847690a0607c788ada433ce60f'/>
<id>576bdec03f0d58847690a0607c788ada433ce60f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Extract `update_coderange` macro</title>
<updated>2022-08-31T08:27:59+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2022-08-30T05:16:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=9dc60653db186b1ae9400ed75b413a07728ce6ff'/>
<id>9dc60653db186b1ae9400ed75b413a07728ce6ff</id>
<content type='text'>
Which restarts scanning the code range in unscanned part.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Which restarts scanning the code range in unscanned part.
</pre>
</div>
</content>
</entry>
<entry>
<title>Check the room including the space to fill</title>
<updated>2022-08-21T11:06:39+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2022-08-21T11:06:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=b043dd9c5dd7b5c46580e49ad38b49d5cb5beaf1'/>
<id>b043dd9c5dd7b5c46580e49ad38b49d5cb5beaf1</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[Bug #18958] format string must be ASCII compatible</title>
<updated>2022-08-20T01:06:40+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2022-08-19T14:53:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=1a2f99275be28fb0e8ff4cfc0165966e99898d70'/>
<id>1a2f99275be28fb0e8ff4cfc0165966e99898d70</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[Bug #18956] Negative codepoints are invalid characters</title>
<updated>2022-08-20T01:06:16+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2022-08-19T16:43:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=d2483393cbcb4dcfa0000fa8166bb7fa7ed9f7b4'/>
<id>d2483393cbcb4dcfa0000fa8166bb7fa7ed9f7b4</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[Bug #18955] format single character for `%c`</title>
<updated>2022-08-19T18:57:13+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2022-08-19T16:04:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=1ef49de83483e6f78bfe9c795a473ccfb29db150'/>
<id>1ef49de83483e6f78bfe9c795a473ccfb29db150</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
