gpg2/gnupg-2.0.9-langinfo.patch
Tomáš Chvátal e04faea002 Accepting request 615233 from home:kbabioch:branches:Base:System
- Applied spec-cleaner
- Refreshed patches
- Update to version 2.2.8:
  * gpg: Decryption of messages not using the MDC mode will now lead to a
    hard failure even if a legacy cipher algorithm was used. The option
    --ignore-mdc-error can be used to turn this failure into a warning. Take
    care: Never use that option unconditionally or without a prior warning.
  * gpg: The MDC encryption mode is now always used regardless of the
    cipher algorithm or any preferences.  For testing --rfc2440 can be
    used to create a message without an MDC.
  * gpg: Sanitize the diagnostic output of the original file name in
    verbose mode.
  * gpg: Detect suspicious multiple plaintext packets in a more reliable way.
  * gpg: Fix the duplicate key signature detection code.
  * gpg: The options --no-mdc-warn, --force-mdc, --no-force-mdc,
    --disable-mdc and --no-disable-mdc have no more effect.
  * agent: Add DBUS_SESSION_BUS_ADDRESS and a few other envvars to the
    list of startup environment variables.

OBS-URL: https://build.opensuse.org/request/show/615233
OBS-URL: https://build.opensuse.org/package/show/Base:System/gpg2?expand=0&rev=198
2018-06-08 12:49:21 +00:00

18 lines
636 B
Diff

# 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. */