fix String#inspect with MRB_UTF8_STRING

cf. #2963
This commit is contained in:
takahashim
2015-09-27 13:43:43 +09:00
parent 0aa83c503d
commit 074c6e2678
+1 -1
View File
@@ -2586,7 +2586,7 @@ mrb_str_inspect(mrb_state *mrb, mrb_value str)
buf[i] = p[i];
}
mrb_str_cat(mrb, result, buf, clen);
p += clen;
p += clen-1;
continue;
}
#endif