]> git.deb.at Git - pkg/abook.git/blobdiff - abook.c
Fixed a bug where non-standard fields get deleted.
[pkg/abook.git] / abook.c
diff --git a/abook.c b/abook.c
index 43f0294a6b418642ec6ebe8396964896db1aa4d3..42c04c1f37022eceb632739fd38098673867c4a5 100644 (file)
--- a/abook.c
+++ b/abook.c
@@ -132,6 +132,8 @@ init_abook()
 
        signal(SIGTERM, quit_abook_sig);
 
+       init_index();
+
        if(init_ui())
                exit(EXIT_FAILURE);
 
@@ -185,9 +187,11 @@ int
 main(int argc, char **argv)
 {
 #if defined(HAVE_SETLOCALE) && defined(HAVE_LOCALE_H)
-       setlocale(LC_ALL, "");
+       setlocale(LC_MESSAGES, "");
+       setlocale(LC_TIME, "");
+       setlocale(LC_CTYPE, "");
+       setlocale(LC_COLLATE, "");
 #endif
-
        bindtextdomain(PACKAGE, LOCALEDIR);
        textdomain(PACKAGE);
 
@@ -706,6 +710,7 @@ init_add_email()
        check_abook_directory();
        init_opts();
        load_opts(rcfile);
+       init_standard_fields();
        atexit(free_opts);
 
        /*