aboutsummaryrefslogtreecommitdiff
path: root/src
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 /src
parent8996a5022fa82e5d5335f71580d0cd6b6d323c9b (diff)
downloadluasystem-e0871d7be63dd428d4a2b9a3db4e033894165cef.tar.gz
luasystem-e0871d7be63dd428d4a2b9a3db4e033894165cef.tar.bz2
luasystem-e0871d7be63dd428d4a2b9a3db4e033894165cef.zip
add system.CODEPAGE_UTF8 for 65001 codepage
Diffstat (limited to 'src')
-rw-r--r--src/term.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/term.c b/src/term.c
index db3c300..d8cc38e 100644
--- a/src/term.c
+++ b/src/term.c
@@ -1042,7 +1042,7 @@ static int lst_getconsolecp(lua_State *L) {
1042/*** 1042/***
1043Sets the current console code page (Windows). 1043Sets the current console code page (Windows).
1044@function setconsolecp 1044@function setconsolecp
1045@tparam int cp the code page to set, use 65001 for UTF-8 1045@tparam int cp the code page to set, use `system.CODEPAGE_UTF8` (65001) for UTF-8
1046@treturn[1] bool `true` on success (always `true` on Posix systems) 1046@treturn[1] bool `true` on success (always `true` on Posix systems)
1047*/ 1047*/
1048static int lst_setconsolecp(lua_State *L) { 1048static int lst_setconsolecp(lua_State *L) {
@@ -1076,7 +1076,7 @@ static int lst_getconsoleoutputcp(lua_State *L) {
1076/*** 1076/***
1077Sets the current console output code page (Windows). 1077Sets the current console output code page (Windows).
1078@function setconsoleoutputcp 1078@function setconsoleoutputcp
1079@tparam int cp the code page to set, use 65001 for UTF-8 1079@tparam int cp the code page to set, use `system.CODEPAGE_UTF8` (65001) for UTF-8
1080@treturn[1] bool `true` on success (always `true` on Posix systems) 1080@treturn[1] bool `true` on success (always `true` on Posix systems)
1081*/ 1081*/
1082static int lst_setconsoleoutputcp(lua_State *L) { 1082static int lst_setconsoleoutputcp(lua_State *L) {