summaryrefslogtreecommitdiff
path: root/xmake/scripts/tools/echo.lua
diff options
context:
space:
mode:
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 d9ee8f872..45abf8c24 100644
--- a/xmake/scripts/tools/echo.lua
+++ b/xmake/scripts/tools/echo.lua
@@ -32,7 +32,7 @@ function echo.main(...)
-- echo all
for _, v in ipairs(...) do
- io.write(string.format("%s ", v:gsub("%%20", " "):gsub("%%3d", "="):gsub("%%22", "\"")))
+ io.write(string.format("%s ", v:gsub("%%(%x%x)", function (w) return string.char(tonumber(w, 16)) end)))
end
io.write("\n")