From: Tollef Fog Heen Date: Sun, 1 Feb 2009 21:23:14 +0000 (+0100) Subject: Add locale support to eweouz-dump-addressbook X-Git-Tag: 0.5~7 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1ce140ad9676e586534823aaaea7c070ffc97d59;p=eweouz 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 --- 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);