summaryrefslogtreecommitdiff
path: root/xmake/core/base/io.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2026-01-15 22:39:52 +0800
committerruki <[email protected]>2026-01-15 22:39:52 +0800
commitb9423c81cc0256e435e6337aa4d55b0ad5ec3784 (patch)
treeb0cb89cc6259b5eccd07ae3a40e2f91d881def60 /xmake/core/base/io.lua
parentca0a72def014007446b720a823fc05f8e298af35 (diff)
improve cli.iconv
Diffstat (limited to 'xmake/core/base/io.lua')
-rw-r--r--xmake/core/base/io.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/core/base/io.lua b/xmake/core/base/io.lua
index 2651cabeb..3afd187d8 100644
--- a/xmake/core/base/io.lua
+++ b/xmake/core/base/io.lua
@@ -603,8 +603,8 @@ end
-- @param inputfile the input file path
-- @param outputfile the output file path
-- @param opt the options
--- - from: the input encoding (default: utf8)
--- - to: the output encoding (default: utf8)
+-- - from: the input encoding, e.g. utf8, utf8bom, utf16, utf16le, utf16lebom, utf16be, gb2312, gbk, iso8859, ucs2, ucs4, utf32 .. (default: utf8)
+-- - to: the output encoding, e.g. utf8, utf8bom, utf16, utf16le, utf16lebom, utf16be, gb2312, gbk, iso8859, ucs2, ucs4, utf32 .. (default: utf8)
function io.convert(inputfile, outputfile, opt)
opt = opt or {}
inputfile = tostring(inputfile)