diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-08-28 05:55:08 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-08-28 05:55:08 +0000 |
commit | cdacaa0a298de262674a166a0434004ae8e622ac (patch) | |
tree | aaf0ab42e67b5f908cad86e3f22d656cb730e8be /io.c | |
parent | 20da239464cc91e921cbb98d903d29622919fdcd (diff) | |
download | ruby-cdacaa0a298de262674a166a0434004ae8e622ac.tar.gz |
io.c: preserve encodings
* io.c (advice_arg_check): preserve encodings in warning messages.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47303 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -8558,9 +8558,7 @@ advice_arg_check(VALUE advice) advice != sym_willneed && advice != sym_dontneed && advice != sym_noreuse) { - VALUE symname = rb_inspect(advice); - rb_raise(rb_eNotImpError, "Unsupported advice: %s", - StringValuePtr(symname)); + rb_raise(rb_eNotImpError, "Unsupported advice: %+"PRIsVALUE, advice); } } |