Project

General

Profile

Actions

Backport #2569

closed

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

Added by moro (Kyosuke MOROHASHI) over 14 years ago. Updated almost 13 years ago.


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 1 (0 open1 closed)

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

Updated by usa (Usaku NAKAMURA) over 14 years ago

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

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

Actions #2

Updated by shyouhei (Shyouhei Urabe) almost 14 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

Actions

Also available in: Atom PDF

Like0
Like0Like0