gpg2/gnupg-2.0.9-langinfo.patch

14 lines
583 B
Diff

# fix [bnc#305725] - non latin characters displayed incorrectly by pinentry
Index: jnlib/utf8conv.c
===================================================================
--- jnlib/utf8conv.c.orig 2008-11-04 15:39:06.000000000 +0100
+++ jnlib/utf8conv.c 2009-06-18 11:42:36.000000000 +0200
@@ -203,6 +203,7 @@ set_native_charset (const char *newset)
#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. */