aboutsummaryrefslogtreecommitdiffstats
path: root/src/init.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2024-08-02 07:42:57 +0000
committerWerner Koch <[email protected]>2024-08-02 07:42:57 +0000
commit7f36440d90964ffe809064365cb16033ba1dda69 (patch)
tree81484b41aa661c378560c6606d19a420e8438d52 /src/init.h
parentUpdate version date of autogen.sh (diff)
downloadlibgpg-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.h7
1 files changed, 5 insertions, 2 deletions
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 <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);