Commit f70634b5 authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto

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

fix String#inspect with MRB_UTF8_STRING
parents 0aa83c50 074c6e26
...@@ -2586,7 +2586,7 @@ mrb_str_inspect(mrb_state *mrb, mrb_value str) ...@@ -2586,7 +2586,7 @@ mrb_str_inspect(mrb_state *mrb, mrb_value str)
buf[i] = p[i]; buf[i] = p[i];
} }
mrb_str_cat(mrb, result, buf, clen); mrb_str_cat(mrb, result, buf, clen);
p += clen; p += clen-1;
continue; continue;
} }
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment