From d7950abe42fa015234dd1387b1715375e553b6d4 Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Thu, 17 Aug 2023 12:57:50 +0200 Subject: [PATCH] unicode: add more constants for Windows codepages Signed-off-by: Simon Rozman --- include/stdex/unicode.hpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/include/stdex/unicode.hpp b/include/stdex/unicode.hpp index 2a4521b7c..0fcfbf6eb 100644 --- a/include/stdex/unicode.hpp +++ b/include/stdex/unicode.hpp @@ -8,15 +8,19 @@ #include "sal.hpp" #include "system.hpp" #include +#include #include #include namespace stdex { - enum class charset_id { - default = 0, + enum class charset_id : uint16_t { #ifdef _WIN32 + default = CP_ACP, utf8 = CP_UTF8, + utf16 = 1200 /*CP_WINUNICODE*/, +#else + default = 0, #endif };