aboutsummaryrefslogtreecommitdiffstats
path: root/transcode.c
diff options
context:
space:
mode:
Diffstat (limited to 'transcode.c')
-rw-r--r--transcode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/transcode.c b/transcode.c
index da9b2cc15d..32d9f8d470 100644
--- a/transcode.c
+++ b/transcode.c
@@ -2487,8 +2487,8 @@ econv_opts(VALUE opt, int ecflags)
/* ecflags |= ECONV_LF_NEWLINE_DECORATOR; */
}
else if (SYMBOL_P(v)) {
- rb_raise(rb_eArgError, "unexpected value for newline option: %s",
- rb_id2name(SYM2ID(v)));
+ rb_raise(rb_eArgError, "unexpected value for newline option: %"PRIsVALUE,
+ rb_sym2str(v));
}
else {
rb_raise(rb_eArgError, "unexpected value for newline option");