https://redmine.ruby-lang.org/https://redmine.ruby-lang.org/favicon.ico?17113305112017-03-29T07:47:08ZRuby Issue Tracking SystemRuby master - Bug #13315: Single "%" at the end of `printf` format string appears in the resulthttps://redmine.ruby-lang.org/issues/13315?journal_id=639482017-03-29T07:47:08Zmorishin (Shintaro Morikawa)
<ul></ul><p>I believe this is not intentional, so created a pull-request on GitHub.<br>
<a href="https://github.com/ruby/ruby/pull/1560" class="external">https://github.com/ruby/ruby/pull/1560</a></p>
<p>This change makes ruby raise error for <code>printf("%")</code> though C just shows warning because this change will drop displayed "%" silently for developers if this shows just warning instead of raising error.</p>
<p>I updated rubyspec too.<br>
<a href="https://github.com/ruby/spec/issues/401" class="external">https://github.com/ruby/spec/issues/401</a></p> Ruby master - Bug #13315: Single "%" at the end of `printf` format string appears in the resulthttps://redmine.ruby-lang.org/issues/13315?journal_id=639492017-03-29T08:13:17Zsorah (Sorah Fukumori)her@sorah.jp
<ul><li><strong>Assignee</strong> set to <i>matz (Yukihiro Matsumoto)</i></li></ul><p>Matz, is this intentional?</p> Ruby master - Bug #13315: Single "%" at the end of `printf` format string appears in the resulthttps://redmine.ruby-lang.org/issues/13315?journal_id=645532017-04-28T13:45:42Zshyouhei (Shyouhei Urabe)shyouhei@ruby-lang.org
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Assigned</i></li></ul> Ruby master - Bug #13315: Single "%" at the end of `printf` format string appears in the resulthttps://redmine.ruby-lang.org/issues/13315?journal_id=649422017-05-19T09:29:24Zmatz (Yukihiro Matsumoto)matz@ruby.or.jp
<ul></ul><p>When I wrote the original code, it was intentional, but without any specific reason.<br>
It's OK for me to raise an error for this case.</p>
<p>Matz.</p> Ruby master - Bug #13315: Single "%" at the end of `printf` format string appears in the resulthttps://redmine.ruby-lang.org/issues/13315?journal_id=650872017-05-25T12:50:43ZEregon (Benoit Daloze)
<ul><li><strong>Assignee</strong> changed from <i>matz (Yukihiro Matsumoto)</i> to <i>Eregon (Benoit Daloze)</i></li></ul> Ruby master - Bug #13315: Single "%" at the end of `printf` format string appears in the resulthttps://redmine.ruby-lang.org/issues/13315?journal_id=650902017-05-25T15:33:33ZEregon (Benoit Daloze)
<ul><li><strong>Status</strong> changed from <i>Assigned</i> to <i>Closed</i></li></ul><p>Applied in changeset trunk|r58890.</p>
<hr>
<p>Raise ArgumentError if sprintf format string ends with %</p>
<ul>
<li>Add tests and specs. See ruby/spec#401.<br>
Patch by Yuta Iwama and Shintaro Morikawa.<br>
<a href="/issues/13315">[ruby-core:80153]</a> [Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: Single "%" at the end of `printf` format string appears in the result (Closed)" href="https://redmine.ruby-lang.org/issues/13315">#13315</a>] [Fix GH-1560]</li>
</ul> Ruby master - Bug #13315: Single "%" at the end of `printf` format string appears in the resulthttps://redmine.ruby-lang.org/issues/13315?journal_id=655392017-06-29T16:55:35Zusa (Usaku NAKAMURA)usa@garbagecollect.jp
<ul><li><strong>Backport</strong> changed from <i>2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN</i> to <i>2.2: WONTFIX, 2.3: WONTFIX, 2.4: UNKNOWN</i></li></ul>