From 7f36440d90964ffe809064365cb16033ba1dda69 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Fri, 2 Aug 2024 09:42:57 +0200 Subject: w32: Allow initialization of new threads to utf8 mode. * src/init.c (utf8_for_new_threads): New var. (_gpgrt_w32_utf8_for_new_threads): New func. (get_tls): Init the TLS utf8 flag from the new var. * src/w32-gettext.c (_gpg_w32_gettext_use_utf8): Implement new flag. -- GnuPG-bug-id: 7185 --- src/init.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/init.h') diff --git a/src/init.h b/src/init.h index ea7154d..269e2c2 100644 --- a/src/init.h +++ b/src/init.h @@ -7,12 +7,12 @@ modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. - + libgpg-error is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. - + You should have received a copy of the GNU Lesser General Public License along with this program; if not, see . */ @@ -47,6 +47,9 @@ struct tls_space_s int gt_use_utf8; }; +/* Force UTF8 for new threads. */ +void _gpgrt_w32_utf8_for_new_threads (void); + /* Return the TLS. */ struct tls_space_s *get_tls (void); -- cgit v1.2.3