]> 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 c4d239ee2241b24ae4750646b0b3660beda969b7..42c04c1f37022eceb632739fd38098673867c4a5 100644 (file)
--- a/abook.c
+++ b/abook.c
@@ -187,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);
 
@@ -708,6 +710,7 @@ init_add_email()
        check_abook_directory();
        init_opts();
        load_opts(rcfile);
+       init_standard_fields();
        atexit(free_opts);
 
        /*