From: Tollef Fog Heen Date: Mon, 1 Sep 2008 11:45:26 +0000 (+0200) Subject: Do a setlocale in order to parse non-ascii options X-Git-Tag: 0.2^2~6 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=60fb52c8fbffe59f3fb1fe5dc805e38c39e76bce;p=eweouz Do a setlocale in order to parse non-ascii options --- diff --git a/src/eweouz-write-addressbook.c b/src/eweouz-write-addressbook.c index 53cb2a9..b8f18ec 100644 --- a/src/eweouz-write-addressbook.c +++ b/src/eweouz-write-addressbook.c @@ -2,7 +2,7 @@ #include #include #include - +#include static gchar *id = NULL; static gchar *full_name = NULL; @@ -48,6 +48,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);