@@ -53,7 +53,7 @@
#include "init.h"
#include "gpg-error.h"
-#ifdef HAVE_W32CE_SYSTEM
+#if defined(HAVE_W32CE_SYSTEM) || WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_APP)
/* Forward declaration. */
static wchar_t *utf8_to_wchar (const char *string, size_t length, size_t *retlen);
@@ -644,6 +644,7 @@
static const char *
my_nl_locale_name (const char *categoryname)
{
+#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP)
#ifndef HAVE_W32CE_SYSTEM
const char *retval;
#endif
@@ -1053,6 +1054,9 @@
case LANG_ZULU: return "zu_ZA";
default: return "C";
}
+#else
+ return "C";
+#endif
}
/* localname.c from gettext END. */
@@ -1383,7 +1383,7 @@
{
int n;
char *result;
- unsigned int cpno = GetConsoleOutputCP ();
+ unsigned int cpno = CP_UTF8;
/* GetConsoleOutputCP returns the 8-Bit codepage that should be used
for console output. If the codepage is not returned we fall back