# fix [bnc#305725] - non latin characters displayed incorrectly by pinentry --- # common/utf8conv.c | 1 + # 1 file changed, 1 insertion(+) # Index: gnupg-2.2.8/common/utf8conv.c =================================================================== --- gnupg-2.2.8.orig/common/utf8conv.c +++ gnupg-2.2.8/common/utf8conv.c @@ -205,6 +205,7 @@ set_native_charset (const char *newset) #else /*!HAVE_W32_SYSTEM && !HAVE_ANDROID_SYSTEM*/ #ifdef HAVE_LANGINFO_CODESET + setlocale(LC_ALL, ""); newset = nl_langinfo (CODESET); #else /*!HAVE_LANGINFO_CODESET*/ /* Try to get the used charset from environment variables. */