fixed a bug in String#dump in case the receiver is a bytestring
--- MacRuby/trunk/string.c 2010-01-08 03:58:41 UTC (rev 3206)
+++ MacRuby/trunk/string.c 2010-01-08 04:45:21 UTC (rev 3207)
@@ -2653,7 +2653,9 @@
rb_str_dump(VALUE str, SEL sel)
{
VALUE res = __rb_str_inspect(str, true);
- *(VALUE *)res = *(VALUE *)str;
+ if (*(VALUE *)str != rb_cByteString) {
+ *(VALUE *)res = *(VALUE *)str;
+ }
return res;
}