From 248b2cc8a96d41445a2e46d259d14fea8e4203ec Mon Sep 17 00:00:00 2001 From: ruki Date: Sun, 2 Apr 2017 17:19:29 +0800 Subject: fix io.printf bug --- scripts/installer.nsi | 2 +- xmake/core/sandbox/modules/io.lua | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/installer.nsi b/scripts/installer.nsi index 2f3da5c17..f4082b69f 100644 --- a/scripts/installer.nsi +++ b/scripts/installer.nsi @@ -49,7 +49,7 @@ RequestExecutionLevel admin ;-------------------------------- ; Version Information -VIProductVersion "2.1.3.0329" +VIProductVersion "2.1.3.0402" VIAddVersionKey /LANG=${LANG_ENGLISH} "ProductName" "XMake" VIAddVersionKey /LANG=${LANG_ENGLISH} "Comments" "website: http://www.xmake.io" VIAddVersionKey /LANG=${LANG_ENGLISH} "CompanyName" "The TBOOX Open Source Group" diff --git a/xmake/core/sandbox/modules/io.lua b/xmake/core/sandbox/modules/io.lua index bc01f696c..7ca5a4def 100644 --- a/xmake/core/sandbox/modules/io.lua +++ b/xmake/core/sandbox/modules/io.lua @@ -176,14 +176,14 @@ end function sandbox_io.print(filepath, ...) -- print it - sandbox_io.write(filepath, vformat(...) .. "\n") + sandbox_io.writefile(filepath, vformat(...) .. "\n") end -- print data to file function sandbox_io.printf(filepath, ...) -- print it - sandbox_io.write(filepath, vformat(...)) + sandbox_io.writefile(filepath, vformat(...)) end -- printf file -- cgit v1.3.1