Project

General

Profile

Actions

Backport #2705

closed

rjust, ljust, and center don't behave properly in ruby 1.9.1p376 with utf-8 padstring

Added by Manfred (Manfred Stienstra) almost 15 years ago. Updated over 13 years ago.

Status:
Closed
[ruby-core:28005]

Description

=begin
The following happens on p376

'1'.rjust(3, 'é') #=> "é1"
'1'.ljust(3, 'é') #=> "1é"
'1'.center(3, 'é') #=> "1é"

On p243, 1.8.7 and 1.9.2 trunk this seems to work properly:

"éé1"
"1éé"
"é1é"
=end


Related issues 2 (0 open2 closed)

Is duplicate of Backport191 - Backport #2532: Backport r26052 into ruby_1_9_1 branchClosed12/27/2009Actions
Is duplicate of Backport191 - Backport #2463: String#centerClosedyugui (Yuki Sonoda)12/08/2009Actions
Actions #1

Updated by nobu (Nobuyoshi Nakada) almost 15 years ago

  • Category set to core
  • Assignee set to yugui (Yuki Sonoda)

=begin
r26052
=end

Actions #2

Updated by yugui (Yuki Sonoda) almost 15 years ago

  • Status changed from Open to Closed

=begin

=end

Actions

Also available in: Atom PDF

Like0
Like0Like0