diff options
author | Marcus Brinkmann <[email protected]> | 2006-07-16 13:36:04 +0000 |
---|---|---|
committer | Marcus Brinkmann <[email protected]> | 2006-07-16 13:36:04 +0000 |
commit | fba48de1eeda06044c372d573940a6358abf7ca3 (patch) | |
tree | dbcf60a89eff7d018d0c303ccbc1a52132040bbe /doc | |
parent | 2006-07-16 Marcus Brinkmann <[email protected]> (diff) | |
download | gpgme-fba48de1eeda06044c372d573940a6358abf7ca3.tar.gz gpgme-fba48de1eeda06044c372d573940a6358abf7ca3.zip |
doc/
2005-03-24 Marcus Brinkmann <[email protected]>
* gpgme.texi (Library Version Check): Make example code compatible
to W32 systems.
gpgme/
2005-03-24 Marcus Brinkmann <[email protected]>
* gpgme.c (gpgme_set_locale): Remove conditional on
HAVE_W32_SYSTEM, and just check for LC_MESSAGES.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/ChangeLog | 5 | ||||
-rw-r--r-- | doc/gpgme.texi | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/doc/ChangeLog b/doc/ChangeLog index 3355b406..ebe0aa4a 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -1,3 +1,8 @@ +2005-03-24 Marcus Brinkmann <[email protected]> + + * gpgme.texi (Library Version Check): Make example code compatible + to W32 systems. + 2006-06-21 Marcus Brinkmann <[email protected]> * gpgme.texi (Passphrase Callback): Fix inverted condition in diff --git a/doc/gpgme.texi b/doc/gpgme.texi index b6809ade..5053645d 100644 --- a/doc/gpgme.texi +++ b/doc/gpgme.texi @@ -609,13 +609,16 @@ init_program (void) setlocale (LC_ALL, ""); gpgme_check_version (NULL); gpgme_set_locale (NULL, LC_CTYPE, setlocale (LC_CTYPE, NULL)); +#ifdef LC_MESSAGES gpgme_set_locale (NULL, LC_MESSAGES, setlocale (LC_MESSAGES, NULL)); +#endif @} @end example Note that you are highly recommended to initialize the locale settings like this. @acronym{GPGME} can not do this for you because it would -not be thread safe. +not be thread safe. The conditional on LC_MESSAGES is only necessary +for portability to W32 systems. @node Signal Handling |