Skip to content

Commit

Permalink
* ext/pathname/pathname.c (path_inspect): use PRIsVALUE to preserve
Browse files Browse the repository at this point in the history
  the result encoding.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42060 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
k-tsj committed Jul 19, 2013
1 parent e31da2d commit 854520f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Fri Jul 19 14:19:48 2013 Kazuki Tsujimoto <kazuki@callcc.net>

* ext/pathname/pathname.c (path_inspect): use PRIsVALUE to preserve
the result encoding.

Fri Jul 19 12:35:41 2013 Tanaka Akira <akr@fsij.org>

* test/socket/test_tcp.rb (test_initialize_failure): Use EADDRNOTAVAIL
Expand Down
2 changes: 1 addition & 1 deletion ext/pathname/pathname.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/*
Expand Down

0 comments on commit 854520f

Please sign in to comment.