From 9272b0fb6ebc245a37c74e02f1de00dc1ec99723 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ingo=20Kl=C3=B6cker?= Date: Mon, 5 Aug 2024 12:07:42 +0200 Subject: [PATCH] w32: Use UTF-8 for localized error descriptions for all threads * src/version.c (do_subsystem_inits) [W32]: Switch gettext to UTF-8 for current thread and all new threads. -- We did already enable UTF-8, but it was only effective for the main thread. Now we enable it also for all new threads (if supported by libgpg-error). This way debug output in background threads now also uses UTF-8. GnuPG-bug-id: 7188 --- src/version.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/version.c b/src/version.c index b0e2a105..ee09facb 100644 --- a/src/version.c +++ b/src/version.c @@ -74,7 +74,11 @@ do_subsystem_inits (void) } /* We want gpgrt's gettext to always output UTF-8. */ +#if GPGRT_VERSION_NUMBER >= 0x013300 /* >= 1.51 */ + gettext_use_utf8 (3); +#else gettext_use_utf8 (1); +#endif #endif _gpgme_debug_subsystem_init ();