mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
First steps towards the W32CE port
This commit is contained in:
parent
30a4096fbb
commit
d232fd2e54
17 changed files with 405 additions and 110 deletions
|
@ -1,5 +1,5 @@
|
|||
/* i18n.c - gettext initialization
|
||||
* Copyright (C) 2007 Free Software Foundation, Inc.
|
||||
* Copyright (C) 2007, 2010 Free Software Foundation, Inc.
|
||||
*
|
||||
* This file is part of GnuPG.
|
||||
*
|
||||
|
@ -51,8 +51,8 @@ char *
|
|||
i18n_switchto_utf8 (void)
|
||||
{
|
||||
#ifdef USE_SIMPLE_GETTEXT
|
||||
gettext_select_utf8 (1);
|
||||
return NULL;
|
||||
/* Return an arbitrary pointer as true value. */
|
||||
return gettext_use_utf8 (1) ? (char*)(-1) : NULL;
|
||||
#elif defined(ENABLE_NLS)
|
||||
char *orig_codeset = bind_textdomain_codeset (PACKAGE_GT, NULL);
|
||||
# ifdef HAVE_LANGINFO_CODESET
|
||||
|
@ -82,8 +82,7 @@ void
|
|||
i18n_switchback (char *saved_codeset)
|
||||
{
|
||||
#ifdef USE_SIMPLE_GETTEXT
|
||||
(void)saved_codeset;
|
||||
gettext_select_utf8 (0);
|
||||
gettext_use_utf8 (!!saved_codeset);
|
||||
#elif defined(ENABLE_NLS)
|
||||
if (saved_codeset)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue