diff options
author | Glynn Foster <glynn.foster@sun.com> | 2003-10-27 02:48:32 +0000 |
---|---|---|
committer | Glynn Foster <gman@src.gnome.org> | 2003-10-27 02:48:32 +0000 |
commit | 2d67087ca0e60c7a8036ad2262af6fec9bd2d738 (patch) | |
tree | 4e5d59920844393c3b22d1c05788a475a235cb7d /src | |
parent | Update Czech translation (diff) | |
download | zenity-2d67087ca0e60c7a8036ad2262af6fec9bd2d738.tar.gz zenity-2d67087ca0e60c7a8036ad2262af6fec9bd2d738.tar.bz2 zenity-2d67087ca0e60c7a8036ad2262af6fec9bd2d738.zip |
Patch from Leonardo Boshell to add the locale.h header.
2003-10-27 Glynn Foster <glynn.foster@sun.com>
* src/main.c: Patch from Leonardo Boshell to add the
locale.h header.
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -21,12 +21,16 @@ * Authors: Glynn Foster <glynn.foster@sun.com> */ -#include "config.h" +#include <config.h> + #include "zenity.h" #include <stdlib.h> #include <locale.h> #include <popt.h> #include <langinfo.h> +#ifdef HAVE_LOCALE_H +#include <locale.h> +#endif typedef enum { MODE_CALENDAR, @@ -1015,7 +1019,10 @@ main (gint argc, gchar **argv) { poptContext ctx; gint nextopt, retval; +#ifdef HAVE_LOCALE_H setlocale(LC_ALL,""); +#endif + bindtextdomain(GETTEXT_PACKAGE, GNOMELOCALEDIR); bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8"); textdomain(GETTEXT_PACKAGE); |