Skip to content

Commit

Permalink
preserve encoding of inspection
Browse files Browse the repository at this point in the history
  • Loading branch information
Watson1978 committed Jan 23, 2012
1 parent 7541772 commit 29ea909
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion error.c
Expand Up @@ -837,7 +837,7 @@ name_err_mesg_to_str(VALUE obj, SEL sel)
break;
}
if (desc && desc[0] != '#') {
d = rb_str_new2(desc);
d = d ? rb_str_dup(d) : rb_str_new2(desc);
rb_str_cat2(d, ":");
rb_str_cat2(d, rb_obj_classname(obj));
}
Expand Down

0 comments on commit 29ea909

Please sign in to comment.