From 4a46362239ca151be428f1db799c491f09d7403b Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 28 Mar 2014 10:32:36 +0000 Subject: struct.c: encoding of member name * struct.c (not_a_member): preserve encoding of member name in error messages. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45463 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- struct.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'struct.c') diff --git a/struct.c b/struct.c index 75f9add471..9d89134392 100644 --- a/struct.c +++ b/struct.c @@ -84,7 +84,7 @@ NORETURN(static void not_a_member(ID id)); static void not_a_member(ID id) { - rb_name_error(id, "`%s' is not a struct member", rb_id2name(id)); + rb_name_error(id, "`%"PRIsVALUE"' is not a struct member", QUOTE_ID(id)); } VALUE -- cgit v1.2.3