Project

General

Profile

Actions

Backport #2622

closed

UTF-8文字列のinspect結果がp160とp249で異なる。

Added by yk (Yuji Kaneda) almost 15 years ago. Updated over 13 years ago.


Description

=begin
金田です。

$KCODE を UTF-8 にした場合の String を inspect した結果が
ruby-1.8.7-p160とruby-1.8.7-p249で異なります。

p160

$ ../ruby-1.8.7-p160/ruby -e '$KCODE="u"; puts "テスト".inspect'
"テスト"

p249

$ ../ruby-1.8.7-p249/ruby -e '$KCODE="u"; puts "テスト".inspect'
"テス\343\203\210"

string.c を修正したパッチを添付します。
添付パッチをてきようすると p160 と同じ結果になります。
=end


Files

string.c.patch (518 Bytes) string.c.patch yk (Yuji Kaneda), 01/22/2010 01:57 AM

Related issues 1 (0 open1 closed)

Is duplicate of Backport187 - Backport #2569: Ruby1.8.7p248 String#inspect broken on multibyte string.Closedshyouhei (Shyouhei Urabe)01/07/2010Actions
Actions #1

Updated by yk (Yuji Kaneda) almost 15 years ago

=begin
ruby-1.8.8では Rev 26103 で修正済でしたのを後から気がつきました。
http://redmine.ruby-lang.org/repositories/revision/ruby-18?rev=26103

申し訳ありません。closeして頂けますでしょうか。
=end

Actions #2

Updated by naruse (Yui NARUSE) almost 15 years ago

  • Status changed from Open to Closed

=begin

=end

Actions #3

Updated by shyouhei (Shyouhei Urabe) almost 15 years ago

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

=begin
closedというかbackportせよという話ですね。わかります。
=end

Actions #4

Updated by shyouhei (Shyouhei Urabe) over 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
Like0Like0Like0Like0