We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a630388 commit 965ba6cCopy full SHA for 965ba6c
ext/json/ext/generator/generator.c
@@ -90,6 +90,7 @@ RBIMPL_ATTR_NORETURN()
90
#endif
91
static void raise_generator_error_str(VALUE invalid_object, VALUE str)
92
{
93
+ rb_enc_associate_index(str, utf8_encindex);
94
VALUE exc = rb_exc_new_str(eGeneratorError, str);
95
rb_ivar_set(exc, rb_intern("@invalid_object"), invalid_object);
96
rb_exc_raise(exc);
0 commit comments