diff options
author | Thijs Schreijer <thijs@thijsschreijer.nl> | 2024-06-19 22:05:33 +0200 |
---|---|---|
committer | Thijs Schreijer <thijs@thijsschreijer.nl> | 2024-06-19 22:05:33 +0200 |
commit | e0871d7be63dd428d4a2b9a3db4e033894165cef (patch) | |
tree | 9a844f267ec9ec99ba745680453b683dd73a6f5b /system/init.lua | |
parent | 8996a5022fa82e5d5335f71580d0cd6b6d323c9b (diff) | |
download | luasystem-e0871d7be63dd428d4a2b9a3db4e033894165cef.zip |
add system.CODEPAGE_UTF8 for 65001 codepage
Diffstat (limited to 'system/init.lua')
-rw-r--r-- | system/init.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/system/init.lua b/system/init.lua index 0c94d35..ee43c4b 100644 --- a/system/init.lua +++ b/system/init.lua @@ -7,6 +7,11 @@ local system = require 'system.core' +--- UTF8 codepage. +-- To be used with `system.setconsoleoutputcp` and `system.setconsolecp`. +-- @field CODEPAGE_UTF8 The Windows CodePage for UTF8. +system.CODEPAGE_UTF8 = 65001 + do local backup_mt = {} |