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 /src | |
| parent | 8996a5022fa82e5d5335f71580d0cd6b6d323c9b (diff) | |
| download | luasystem-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1042,7 +1042,7 @@ static int lst_getconsolecp(lua_State *L) { | |||
| 1042 | /*** | 1042 | /*** |
| 1043 | Sets the current console code page (Windows). | 1043 | Sets 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 | */ |
| 1048 | static int lst_setconsolecp(lua_State *L) { | 1048 | static int lst_setconsolecp(lua_State *L) { |
| @@ -1076,7 +1076,7 @@ static int lst_getconsoleoutputcp(lua_State *L) { | |||
| 1076 | /*** | 1076 | /*** |
| 1077 | Sets the current console output code page (Windows). | 1077 | Sets 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 | */ |
| 1082 | static int lst_setconsoleoutputcp(lua_State *L) { | 1082 | static int lst_setconsoleoutputcp(lua_State *L) { |
