diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-10-15 06:39:24 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-10-15 06:39:24 +0000 |
commit | 9c7e5a85d1f51467061864363eab243ae32699ac (patch) | |
tree | cfb63e5da0dbd60fe7306f00857d4e3e0fdbf1d4 /ext | |
parent | 125fbea52203d1b2a85fdfbdb011f56ff876830c (diff) |
merge revision(s) 42060: [Backport #9915]
* ext/pathname/pathname.c (path_inspect): use PRIsVALUE to preserve
the result encoding.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@47929 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r-- | ext/pathname/pathname.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pathname/pathname.c b/ext/pathname/pathname.c index 2bb6ce2f3c..dbd58ae7f9 100644 --- a/ext/pathname/pathname.c +++ b/ext/pathname/pathname.c @@ -183,7 +183,7 @@ path_inspect(VALUE self) { const char *c = rb_obj_classname(self); VALUE str = get_strpath(self); - return rb_sprintf("#<%s:%s>", c, RSTRING_PTR(str)); + return rb_sprintf("#<%s:%"PRIsVALUE">", c, str); } /* |