diff options
author | Werner Koch <[email protected]> | 2024-08-02 07:42:57 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2024-08-02 07:42:57 +0000 |
commit | 7f36440d90964ffe809064365cb16033ba1dda69 (patch) | |
tree | 81484b41aa661c378560c6606d19a420e8438d52 /src/init.h | |
parent | Update version date of autogen.sh (diff) | |
download | libgpg-error-7f36440d90964ffe809064365cb16033ba1dda69.tar.gz libgpg-error-7f36440d90964ffe809064365cb16033ba1dda69.zip |
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
Diffstat (limited to 'src/init.h')
-rw-r--r-- | src/init.h | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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 <https://www.gnu.org/licenses/>. */ @@ -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); |