From 85e16f95b1ca0e4503fbe0ee92cfa94fe5d3d852 Mon Sep 17 00:00:00 2001 From: Ykkrosh Date: Thu, 27 Oct 2011 14:19:37 +0000 Subject: [PATCH] Use debug_printf for script print() function, so it's more visible on Windows This was SVN commit r10435. --- source/scriptinterface/ScriptInterface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/scriptinterface/ScriptInterface.cpp b/source/scriptinterface/ScriptInterface.cpp index c175890393..b5ae9bcd3a 100644 --- a/source/scriptinterface/ScriptInterface.cpp +++ b/source/scriptinterface/ScriptInterface.cpp @@ -303,7 +303,7 @@ JSBool print(JSContext* cx, uintN argc, jsval* vp) std::string str; if (!ScriptInterface::FromJSVal(cx, JS_ARGV(cx, vp)[i], str)) return JS_FALSE; - printf("%s", str.c_str()); + debug_printf(L"%hs", str.c_str()); } fflush(stdout); JS_SET_RVAL(cx, vp, JSVAL_VOID);