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.
This commit is contained in:
parent
628e173e60
commit
2d67087ca0
@ -1,3 +1,8 @@
|
|||||||
|
2003-10-27 Glynn Foster <glynn.foster@sun.com>
|
||||||
|
|
||||||
|
* src/main.c: Patch from Leonardo Boshell to add the
|
||||||
|
locale.h header.
|
||||||
|
|
||||||
2003-10-13 Sami Pesonen <sampeson@iki.fi>
|
2003-10-13 Sami Pesonen <sampeson@iki.fi>
|
||||||
|
|
||||||
* configure.in: Added "fi" to ALL_LINGUAS.
|
* configure.in: Added "fi" to ALL_LINGUAS.
|
||||||
|
@ -21,12 +21,16 @@
|
|||||||
* Authors: Glynn Foster <glynn.foster@sun.com>
|
* Authors: Glynn Foster <glynn.foster@sun.com>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
#include <config.h>
|
||||||
|
|
||||||
#include "zenity.h"
|
#include "zenity.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <locale.h>
|
#include <locale.h>
|
||||||
#include <popt.h>
|
#include <popt.h>
|
||||||
#include <langinfo.h>
|
#include <langinfo.h>
|
||||||
|
#ifdef HAVE_LOCALE_H
|
||||||
|
#include <locale.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
MODE_CALENDAR,
|
MODE_CALENDAR,
|
||||||
@ -1015,7 +1019,10 @@ main (gint argc, gchar **argv) {
|
|||||||
poptContext ctx;
|
poptContext ctx;
|
||||||
gint nextopt, retval;
|
gint nextopt, retval;
|
||||||
|
|
||||||
|
#ifdef HAVE_LOCALE_H
|
||||||
setlocale(LC_ALL,"");
|
setlocale(LC_ALL,"");
|
||||||
|
#endif
|
||||||
|
|
||||||
bindtextdomain(GETTEXT_PACKAGE, GNOMELOCALEDIR);
|
bindtextdomain(GETTEXT_PACKAGE, GNOMELOCALEDIR);
|
||||||
bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");
|
bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");
|
||||||
textdomain(GETTEXT_PACKAGE);
|
textdomain(GETTEXT_PACKAGE);
|
||||||
|
Reference in New Issue
Block a user