diff options
-rw-r--r-- | ruby.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -145,6 +145,7 @@ locale_encoding(void) if (codeset == Qnil) return rb_default_encoding(); + name = StringValueCStr(codeset); idx = rb_enc_find_index(name); if (idx < 0) return rb_default_encoding(); |