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
This commit is contained in:
Ingo Klöcker 2024-08-05 12:07:42 +02:00
parent 5c095553e4
commit 9272b0fb6e
No known key found for this signature in database
GPG Key ID: F5A5D1692277A1E9

View File

@ -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 ();