gpg2/gnupg-2.0.9-langinfo.patch

12 lines
374 B
Diff

# fix [bnc#305725] - non latin characters displayed incorrectly by pinentry
--- jnlib/utf8conv.c
+++ jnlib/utf8conv.c
@@ -205,6 +205,7 @@
#else /*!HAVE_W32_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. */