diff options
author | Ingo Klöcker <[email protected]> | 2024-08-05 10:07:42 +0000 |
---|---|---|
committer | Ingo Klöcker <[email protected]> | 2024-08-05 10:16:35 +0000 |
commit | 9272b0fb6ebc245a37c74e02f1de00dc1ec99723 (patch) | |
tree | 13849bf3778ec26034342fcdfe1d6eec935d69bc | |
parent | build,qt: Fix include path in CMake files (diff) | |
download | gpgme-9272b0fb6ebc245a37c74e02f1de00dc1ec99723.tar.gz gpgme-9272b0fb6ebc245a37c74e02f1de00dc1ec99723.zip |
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
-rw-r--r-- | src/version.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/version.c b/src/version.c index b0e2a105..ee09facb 100644 --- a/src/version.c +++ b/src/version.c @@ -74,8 +74,12 @@ 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 (); _gpgme_io_subsystem_init (); |