diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | ext/pathname/pathname.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Fri Jul 19 14:19:48 2013 Kazuki Tsujimoto <[email protected]> + + * ext/pathname/pathname.c (path_inspect): use PRIsVALUE to preserve + the result encoding. + Fri Jul 19 12:35:41 2013 Tanaka Akira <[email protected]> * test/socket/test_tcp.rb (test_initialize_failure): Use EADDRNOTAVAIL 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); } /* |