Project

General

Profile

Backport #2463

String#center

Added by sakuro (Sakuro OZAWA) almost 10 years ago. Updated over 8 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 padstringClosed02/02/2010Actions

History

#1

Updated by nobu (Nobuyoshi Nakada) almost 10 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

=begin
This issue was solved with changeset r26052.
Sakuro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.

=end

#2

Updated by nobu (Nobuyoshi Nakada) almost 10 years ago

  • Category set to core
  • Status changed from Closed to Assigned
  • Assignee set to yugui (Yuki Sonoda)

=begin

=end

#3

Updated by yugui (Yuki Sonoda) over 9 years ago

  • Status changed from Assigned to Closed

=begin
r26052 was merged into ruby_1_9_1 at r26568.
=end

Also available in: Atom PDF