summaryrefslogtreecommitdiff
path: root/ext/pathname
diff options
context:
space:
mode:
authorktsj <ktsj@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-19 05:21:38 +0000
committerktsj <ktsj@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-19 05:21:38 +0000
commit854520fc1e5da3a5af12ed01608c5626b81b7996 (patch)
tree26f8f6ab9eb1833f6b29d56c22d9fa52999ddc78 /ext/pathname
parente31da2df7ed992ed7f78fdb160186e4715837074 (diff)
* ext/pathname/pathname.c (path_inspect): use PRIsVALUE to preserve
the result encoding. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42060 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/pathname')
-rw-r--r--ext/pathname/pathname.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pathname/pathname.c b/ext/pathname/pathname.c
index 2e30ff58c0..884bd4a821 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);
}
/*