From 6982b226b88da5a18f4fcca36166b62ce502aba3 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Thu, 22 May 2008 14:30:52 +0200 Subject: [PATCH] Do not call setlocale, let gtk handle this. --- src/main.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/main.c b/src/main.c index f0949748..ede00a17 100644 --- a/src/main.c +++ b/src/main.c @@ -121,11 +121,6 @@ static void locale_init (void) { #ifdef ENABLE_NLS - -#if HAVE_LOCALE_H - setlocale (LC_ALL, ""); -#endif - bindtextdomain (GETTEXT_PACKAGE, MIDORI_LOCALEDIR); bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); textdomain (GETTEXT_PACKAGE); @@ -320,7 +315,7 @@ main (int argc, char** argv) gjs_script_from_file (js_context, argv[1], &exception); JSGlobalContextRelease (js_context); if (!exception) - return ; + return 0; printf ("%s - Exception: %s\n", argv[1], exception); return 1; }