]> spindle.queued.net Git - midori/commitdiff
Do not call setlocale, let gtk handle this.
authorChristian Dywan <christian@twotoasts.de>
Thu, 22 May 2008 12:30:52 +0000 (14:30 +0200)
committerChristian Dywan <christian@twotoasts.de>
Thu, 22 May 2008 12:30:52 +0000 (14:30 +0200)
src/main.c

index f0949748962750690a87836934f779fd03b9c4e6..ede00a17605ee5330ed89831d50dfb5fdf4f789f 100644 (file)
@@ -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;
     }