From c0da52914069e0532df6474c8047cf7984c8d62f Mon Sep 17 00:00:00 2001 From: Igor Bukanov Date: Mon, 29 Nov 2010 13:27:27 -0800 Subject: [PATCH] Bug 613516 - xpcshell dump doesn't print newlines. r=jorendorff, a=blocking --- js/src/xpconnect/shell/xpcshell.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/js/src/xpconnect/shell/xpcshell.cpp b/js/src/xpconnect/shell/xpcshell.cpp index 85ee59f2c23..277d3c4a204 100644 --- a/js/src/xpconnect/shell/xpcshell.cpp +++ b/js/src/xpconnect/shell/xpcshell.cpp @@ -449,7 +449,11 @@ Dump(JSContext *cx, uintN argc, jsval *vp) if (!str) return JS_FALSE; - JS_FileEscapedString(gOutFile, str, 0); + JSAutoByteString bytes(cx, str); + if (!bytes) + return JS_FALSE; + + fputs(bytes.ptr(), gOutFile); fflush(gOutFile); return JS_TRUE; }