summaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorThijs Schreijer <thijs@thijsschreijer.nl>2024-06-19 22:05:33 +0200
committerThijs Schreijer <thijs@thijsschreijer.nl>2024-06-19 22:05:33 +0200
commite0871d7be63dd428d4a2b9a3db4e033894165cef (patch)
tree9a844f267ec9ec99ba745680453b683dd73a6f5b /system
parent8996a5022fa82e5d5335f71580d0cd6b6d323c9b (diff)
downloadluasystem-e0871d7be63dd428d4a2b9a3db4e033894165cef.zip
add system.CODEPAGE_UTF8 for 65001 codepage
Diffstat (limited to 'system')
-rw-r--r--system/init.lua5
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 = {}