From cdacaa0a298de262674a166a0434004ae8e622ac Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 28 Aug 2014 05:55:08 +0000 Subject: 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 --- io.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'io.c') 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); } } -- cgit v1.2.3