aboutsummaryrefslogtreecommitdiffstats
path: root/src/w32-add.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2018-12-07 13:46:25 +0000
committerWerner Koch <[email protected]>2018-12-07 13:50:05 +0000
commit0b190ce89de7b3df873c3896d5126c7882b82e18 (patch)
treef1721d4dd91fa1929c817fa14d53d89875af325c /src/w32-add.h
parentdoc: Replace gpg-error-config by gpgrt-config. (diff)
downloadlibgpg-error-0b190ce89de7b3df873c3896d5126c7882b82e18.tar.gz
libgpg-error-0b190ce89de7b3df873c3896d5126c7882b82e18.zip
Add W32-only function gpgrt_w32_override_locale.
* src/w32-gettext.c (struct override_locale): new. (my_nl_locale_name): Take care of that. (gpgrt_w32_override_locale): New. * src/gpg-error.def.in: Add gpgrt_w32_override_locale. * src/gpg-error.c: New command --locale for Windows. -- GnuPG-bug-id: 3733 Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'src/w32-add.h')
-rw-r--r--src/w32-add.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/w32-add.h b/src/w32-add.h
index 07e3c7d..3428961 100644
--- a/src/w32-add.h
+++ b/src/w32-add.h
@@ -37,6 +37,10 @@ int _gpg_w32_gettext_use_utf8 (int value);
# define gettext_use_utf8(a) _gpg_w32_gettext_use_utf8 (a)
#endif /*GPG_ERR_ENABLE_GETTEXT_MACROS*/
+/* Force the use of the locale NAME or if NAME is NULL the one derived
+ * from LANGID. This function must be used early and is not thread-safe. */
+void gpgrt_w32_override_locale (const char *name, unsigned short langid);
+
/* A simple iconv implementation w/o the need for an extra DLL. */
struct _gpgrt_w32_iconv_s;