summaryrefslogtreecommitdiff
path: root/xmake/scripts/tools/echo.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2015-12-05 10:04:47 +0800
committerruki <[email protected]>2015-12-05 10:04:47 +0800
commitb753c9e182813b395dd4910476ff4fb3c5e26fd9 (patch)
treee9233083762f24c2f988f4d31d7cec846d55bfb2 /xmake/scripts/tools/echo.lua
parent98a12249aff0eed41c11f31da54205dc876379bf (diff)
encode and decode string
Diffstat (limited to 'xmake/scripts/tools/echo.lua')
-rw-r--r--xmake/scripts/tools/echo.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/scripts/tools/echo.lua b/xmake/scripts/tools/echo.lua
index a4911dd10..dbfa67426 100644
--- a/xmake/scripts/tools/echo.lua
+++ b/xmake/scripts/tools/echo.lua
@@ -32,7 +32,7 @@ function echo.main(self, ...)
-- echo all
for _, v in ipairs(...) do
- io.write(string.format("%s ", v:gsub("%%(%x%x)", function (w) return string.char(tonumber(w, 16)) end)))
+ io.write(string.format("%s ", v:decode()))
end
io.write("\n")