[gedit] Fix locale is not properly initialized



commit cf85f05495ae37e2bb7bd10feae5c7b66cb4f7dd
Author: Nguy�n Thái Ng�c Duy <pclouds gmail com>
Date:   Mon Jan 3 19:12:32 2011 +0700

    Fix locale is not properly initialized
    
    Locale initialization needs gedit_dirs_get_gedit_locale_dir()
    but that function would return NULL until gedit_dirs_init()
    is called.
    
    Move gedit_dirs_init() a few lines up.
    
    Signed-off-by: Nguy�n Thái Ng�c Duy <pclouds gmail com>

 gedit/gedit.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gedit/gedit.c b/gedit/gedit.c
index b3744a4..af819a0 100644
--- a/gedit/gedit.c
+++ b/gedit/gedit.c
@@ -231,14 +231,14 @@ main (int argc, char *argv[])
 	/* Setup locale/gettext */
 	setlocale (LC_ALL, "");
 
+	gedit_dirs_init ();
+
 	dir = gedit_dirs_get_gedit_locale_dir ();
 	bindtextdomain (GETTEXT_PACKAGE, dir);
 
 	bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
 	textdomain (GETTEXT_PACKAGE);
 
-	gedit_dirs_init ();
-
 	/* Parse command line arguments */
 	command_line = gedit_command_line_get_default ();
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]