2
0
Эх сурвалжийг харах

[eval] fix printing problem of objects that have unicode stuff

Simon Krajewski 6 жил өмнө
parent
commit
890baa0fd0

+ 1 - 1
src/macro/eval/evalPrinting.ml

@@ -61,7 +61,7 @@ let rec s_object depth o =
 	) fields;
 	Buffer.add_string buf "}";
 	let s = Buffer.contents buf in
-	create_with_length s (UTF8.length s)
+	create_with_length s (try UTF8.length s with _ -> String.length s)
 
 and s_array depth va =
 	join rempty [