From: nagachika00@... Date: 2015-12-03T17:56:29+00:00 Subject: [ruby-core:71813] [Ruby trunk - Bug #11766] sprintf formatting Rationals as floats produces garbage Issue #11766 has been updated by Tomoyuki Chikanaga. Backport changed from 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN to 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: REQUIRED ---------------------------------------- Bug #11766: sprintf formatting Rationals as floats produces garbage https://bugs.ruby-lang.org/issues/11766#change-55219 * Author: Jan Steffens * Status: Closed * Priority: Normal * Assignee: * ruby -v: ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-linux] * Backport: 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: REQUIRED ---------------------------------------- Test case: ~~~ "%8.1f %8.1f" % [1r, 1r] ~~~ Expected: ~~~ " 1.0 1.0" ~~~ Actual result: ~~~ " \u0000\u0000\u0000" ~~~ -- https://bugs.ruby-lang.org/