This leads to a buglet that new line character '\n' is converted to <10> string, so when converting multiple lined strings to C strings we loose line breaks. Same applies for other control characters.
Signed-off-by: Tomek Grabiec <tgrab...@gmail.com> --- vm/object.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/vm/object.c b/vm/object.c index 8005f31..7c16231 100644 --- a/vm/object.c +++ b/vm/object.c @@ -557,7 +557,7 @@ char *vm_string_to_cstr(const struct vm_object *string_obj) ch = array_get_field_char(array_object, offset + i); - if (ch < 128 && isprint(ch)) + if (ch < 128) err = str_append(str, "%c", ch); else err = str_append(str, "<%d>", ch); -- 1.6.0.6 ------------------------------------------------------------------------------ _______________________________________________ Jatovm-devel mailing list Jatovm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jatovm-devel