2 * gunicode-win32-uwp.c: UWP unicode support.
4 * Copyright 2016 Microsoft
5 * Licensed under the MIT license. See LICENSE file in the project root for full license information.
10 #if G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT)
14 extern const char *my_charset;
15 static gboolean is_utf8;
18 g_get_charset (G_CONST_RETURN char **charset)
20 if (my_charset == NULL) {
24 GetCPInfoExA (CP_ACP, 0, &cp_info);
25 sprintf (buf, "CP%u", cp_info.CodePage);
31 *charset = my_charset;
36 #else /* G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) */
39 // Quiet Visual Studio linker warning, LNK4221, in cases when this source file intentional ends up empty.
40 void __mono_win32_gunicode_win32_uwp_quiet_lnk4221(void) {}
42 #endif /* G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) */