From 2d67087ca0e60c7a8036ad2262af6fec9bd2d738 Mon Sep 17 00:00:00 2001 From: Glynn Foster Date: Mon, 27 Oct 2003 02:48:32 +0000 Subject: Patch from Leonardo Boshell to add the locale.h header. 2003-10-27 Glynn Foster * src/main.c: Patch from Leonardo Boshell to add the locale.h header. --- src/main.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/main.c b/src/main.c index 84d01fe..58fe37a 100644 --- a/src/main.c +++ b/src/main.c @@ -21,12 +21,16 @@ * Authors: Glynn Foster */ -#include "config.h" +#include + #include "zenity.h" #include #include #include #include +#ifdef HAVE_LOCALE_H +#include +#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); -- cgit v1.2.3-2-g168b