Merge pull request #2964 from takahashim/fix-utf8-inspect

fix String#inspect with MRB_UTF8_STRING
This commit is contained in:
Yukihiro "Matz" Matsumoto
2015-09-27 20:48:16 +09:00
+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