Project

General

Profile

Backport #2569

Ruby1.8.7p248 String#inspect broken on multibyte string.

Added by moro (Kyosuke MOROHASHI) over 10 years ago. Updated about 9 years ago.

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

Description

=begin
Ruby 1.8.7p248にあげたところ、マルチバイト文字列の
String#inspectで末尾1文字が正しく表示されません。

$ ruby -v -Ku -e 'p "あいうえお"'
ruby 1.8.7 (2009-12-24 patchlevel 248) [i686-darwin9]
"あいうえ\343\201\212"
$

マルチバイトでなければちゃんと表示されます。
$ ruby -v -Ku -e 'p "あいうえお\n"'
ruby 1.8.7 (2009-12-24 patchlevel 248) [i686-darwin9]
"あいうえお\n"
$
=end


Related issues

Has duplicate Backport187 - Backport #2622: UTF-8文字列のinspect結果がp160とp249で異なる。Closedshyouhei (Shyouhei Urabe)01/22/2010Actions
#1

Updated by usa (Usaku NAKAMURA) over 10 years ago

  • Status changed from Open to Assigned
  • Assignee set to shyouhei (Shyouhei Urabe)

=begin
ruby_1_8ブランチではr26103で直してあります。
というわけでバックポートお願いします。
=end

#2

Updated by shyouhei (Shyouhei Urabe) almost 10 years ago

  • Status changed from Assigned to Closed

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

=end

Also available in: Atom PDF