ruby-changes:30042
From: ktsj <ko1@a...>
Date: Sun, 21 Jul 2013 08:14:59 +0900 (JST)
Subject: [ruby-changes:30042] ktsj:r42094 (trunk): * proc.c (proc_to_s): use PRIsVALUE to preserve the result encoding.
ktsj 2013-07-21 08:14:48 +0900 (Sun, 21 Jul 2013) New Revision: 42094 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=42094 Log: * proc.c (proc_to_s): use PRIsVALUE to preserve the result encoding. Modified files: trunk/ChangeLog trunk/proc.c Index: ChangeLog =================================================================== --- ChangeLog (revision 42093) +++ ChangeLog (revision 42094) @@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Sun Jul 21 08:12:16 2013 Kazuki Tsujimoto <kazuki@c...> + + * proc.c (proc_to_s): use PRIsVALUE to preserve the result encoding. + Sun Jul 21 03:36:18 2013 NARUSE, Yui <naruse@r...> * hash.c (rb_hash_flatten): use NUM2INT to raise TypeError on 32bit Index: proc.c =================================================================== --- proc.c (revision 42093) +++ proc.c (revision 42094) @@ -883,9 +883,8 @@ proc_to_s(VALUE self) https://github.com/ruby/ruby/blob/trunk/proc.c#L883 if (iseq->line_info_table) { first_lineno = rb_iseq_first_lineno(iseq); } - str = rb_sprintf("#<%s:%p@%s:%d%s>", cname, (void *)self, - RSTRING_PTR(iseq->location.path), - first_lineno, is_lambda); + str = rb_sprintf("#<%s:%p@%"PRIsVALUE":%d%s>", cname, (void *)self, + iseq->location.path, first_lineno, is_lambda); } else { str = rb_sprintf("#<%s:%p%s>", cname, (void *)proc->block.iseq, -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/