--- libgpg-error/src/w32-gettext.c.orig 2016-05-09 17:30:18.306788566 +0200 +++ libgpg-error/src/w32-gettext.c 2016-05-09 17:32:19.830771580 +0200 @@ -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. */ --- libgpg-error/src/w32-gettext.c.orig 2016-08-25 15:55:09.006943405 +0200 +++ libgpg-error/src/w32-gettext.c 2016-08-25 15:56:47.442788455 +0200 @@ -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