aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-08-28 05:55:08 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-08-28 05:55:08 +0000
commitcdacaa0a298de262674a166a0434004ae8e622ac (patch)
treeaaf0ab42e67b5f908cad86e3f22d656cb730e8be /io.c
parent20da239464cc91e921cbb98d903d29622919fdcd (diff)
downloadruby-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.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/io.c b/io.c
index 7dc1c8956c..ddd9f1a9ff 100644
--- a/io.c
+++ b/io.c
@@ -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);
}
}