diff options
| author | ruki <[email protected]> | 2024-03-09 22:44:01 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-03-09 22:44:01 +0800 |
| commit | 59c9f7e5c52bc5f5f0669d340652046f7e4fae92 (patch) | |
| tree | 3ab4322c890284e8c4cc7279c1ef4d009a5449f9 | |
| parent | 67dce6e822d59b0722e15c1afe76262f29310f70 (diff) | |
add gb2312 encoding
| -rw-r--r-- | xmake/modules/core/tools/cl.lua | 3 | ||||
| -rw-r--r-- | xmake/modules/private/check/checkers/api/target/encodings.lua | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/xmake/modules/core/tools/cl.lua b/xmake/modules/core/tools/cl.lua index 18f6ee868..8702dade6 100644 --- a/xmake/modules/core/tools/cl.lua +++ b/xmake/modules/core/tools/cl.lua @@ -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()] diff --git a/xmake/modules/private/check/checkers/api/target/encodings.lua b/xmake/modules/private/check/checkers/api/target/encodings.lua index a4ec908f3..01256d310 100644 --- a/xmake/modules/private/check/checkers/api/target/encodings.lua +++ b/xmake/modules/private/check/checkers/api/target/encodings.lua @@ -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 |
