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:
parent
5c095553e4
commit
9272b0fb6e
@ -74,7 +74,11 @@ do_subsystem_inits (void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* We want gpgrt's gettext to always output UTF-8. */
|
/* 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);
|
gettext_use_utf8 (1);
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
_gpgme_debug_subsystem_init ();
|
_gpgme_debug_subsystem_init ();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user