Project

General

Profile

Backport #2463

String#center

Added by sakuro (Sakuro OZAWA) over 10 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Normal
[ruby-dev:39856]

Description

=begin
1.9.1p376で ruby -e 'puts "".center(11, "ab")' の結果がおかしくなります。

  • 正しい

ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-darwin10.2.0]
ababaababab

ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin10.2.0]
ababaababab

  • 正しくない

ruby 1.9.1p376 (2009-12-07 revision 26041) [i386-darwin10.2.0]
ababaabab

ruby 1.9.2dev (2009-12-08 trunk 26049) [x86_64-darwin10.2.0]
ababaabab
=end


Related issues

Has duplicate Backport191 - Backport #2532: Backport r26052 into ruby_1_9_1 branchClosed12/27/2009Actions
Has duplicate Backport191 - Backport #2705: rjust, ljust, and center don't behave properly in ruby 1.9.1p376 with utf-8 padstringClosedyugui (Yuki Sonoda)02/02/2010Actions

Also available in: Atom PDF