Skip to content

Commit 6147ee2

Browse files
maiddaisukilhmouse
authored andcommitted
crt: mbctype.h: add missing _MB_CP_UTF8
This constant is used with _setmbcp to set multibyte code page to UTF-8. Note, however, that multibyte functions declared in mbctype.h and mbstring.h cannot operate on UTF-8 strings. Signed-off-by: Kirill Makurin <[email protected]> Signed-off-by: LIU Hao <[email protected]>
1 parent a166683 commit 6147ee2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mingw-w64-headers/crt/mbctype.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ extern "C" {
4848
#define _MB_CP_OEM -2
4949
#define _MB_CP_ANSI -3
5050
#define _MB_CP_LOCALE -4
51+
#ifdef _UCRT
52+
#define _MB_CP_UTF8 65001
53+
#endif
5154

5255
#ifndef _MBCTYPE_DEFINED
5356
#define _MBCTYPE_DEFINED

0 commit comments

Comments
 (0)