Skip to content

Commit

Permalink
add gb2312 encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Mar 9, 2024
1 parent 67dce6e commit 59c9f7e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion xmake/modules/core/tools/cl.lua
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,8 @@ function nf_encoding(self, encoding)
end
local charsets = {
["utf-8"] = "utf-8",
utf8 = "utf-8"
utf8 = "utf-8",
gb2312 = "gb2312"
}
local flags = {}
charset = charsets[charset:lower()]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ import(".api_checker")
function main(opt)
opt = opt or {}
api_checker.check_targets("encodings", table.join(opt, {values = {
"none", "utf-8", "source:utf-8", "target:utf-8"}}))
"none", "utf-8", "source:utf-8", "target:utf-8", "source:gb2312", "target:gb2312"}}))
end

0 comments on commit 59c9f7e

Please sign in to comment.