From e0871d7be63dd428d4a2b9a3db4e033894165cef Mon Sep 17 00:00:00 2001 From: Thijs Schreijer Date: Wed, 19 Jun 2024 22:05:33 +0200 Subject: add system.CODEPAGE_UTF8 for 65001 codepage --- src/term.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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) { /*** Sets the current console code page (Windows). @function setconsolecp -@tparam int cp the code page to set, use 65001 for UTF-8 +@tparam int cp the code page to set, use `system.CODEPAGE_UTF8` (65001) for UTF-8 @treturn[1] bool `true` on success (always `true` on Posix systems) */ static int lst_setconsolecp(lua_State *L) { @@ -1076,7 +1076,7 @@ static int lst_getconsoleoutputcp(lua_State *L) { /*** Sets the current console output code page (Windows). @function setconsoleoutputcp -@tparam int cp the code page to set, use 65001 for UTF-8 +@tparam int cp the code page to set, use `system.CODEPAGE_UTF8` (65001) for UTF-8 @treturn[1] bool `true` on success (always `true` on Posix systems) */ static int lst_setconsoleoutputcp(lua_State *L) { -- cgit v1.2.3-55-g6feb