Project

General

Profile

This project is closed and read-only.

Actions

Backport #2705

closed

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

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

Added by Manfred (Manfred Stienstra) over 16 years ago. Updated over 15 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 branchClosedActions
Is duplicate of Backport191 - Backport #2463: String#centerClosedyugui (Yuki Sonoda)Actions
Actions

Also available in: PDF Atom