From 1ce140ad9676e586534823aaaea7c070ffc97d59 Mon Sep 17 00:00:00 2001 From: Tollef Fog Heen Date: Sun, 1 Feb 2009 22:23:14 +0100 Subject: [PATCH] Add locale support to eweouz-dump-addressbook It wasn't possible to search for non-ascii components of names. Add that support, thanks to Roland Mas for the prod. Fixes Debian #511761 --- src/eweouz-dump-addressbook.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/eweouz-dump-addressbook.c b/src/eweouz-dump-addressbook.c index 237b2dc..7f7546c 100644 --- a/src/eweouz-dump-addressbook.c +++ b/src/eweouz-dump-addressbook.c @@ -2,6 +2,7 @@ #include #include #include +#include void dump_as_vcard(EContact *contact, int dump_all) { @@ -70,6 +71,8 @@ int main(int argc, char **argv) GError *error = NULL; GOptionContext *optioncontext; + setlocale (LC_ALL, ""); + optioncontext = g_option_context_new ("- whack address book"); g_option_context_add_main_entries (optioncontext, entries, NULL); g_option_context_parse (optioncontext, &argc, &argv, &error); -- 2.39.5