diff options
Diffstat (limited to 'xmake/modules/cli/iconv.lua')
| -rw-r--r-- | xmake/modules/cli/iconv.lua | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/xmake/modules/cli/iconv.lua b/xmake/modules/cli/iconv.lua index cba86b500..efb26c864 100644 --- a/xmake/modules/cli/iconv.lua +++ b/xmake/modules/cli/iconv.lua @@ -47,7 +47,6 @@ function main(...) local from_code = args.from local to_code = args.to - -- read and write content - local content = io.readfile(input_file, {encoding = from_code}) - io.writefile(output_file, content, {encoding = to_code}) + -- convert encoding + io.convert(input_file, output_file, {from = from_code, to = to_code}) end |
