From: Manfred Stienstra Date: 2010-02-02T18:06:01+09:00 Subject: [ruby-core:28005] [Bug #2705] rjust, ljust, and center don't behave properly in ruby 1.9.1p376 with utf-8 padstring Bug #2705: rjust, ljust, and center don't behave properly in ruby 1.9.1p376 with utf-8 padstring http://redmine.ruby-lang.org/issues/show/2705 Author: Manfred Stienstra Status: Open, Priority: Normal Target version: 1.9.1 ruby -v: 1.9.1p376 (2009-12-07 revision 26041) [i386-darwin10.2.0] 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��" ---------------------------------------- http://redmine.ruby-lang.org