From 60fb52c8fbffe59f3fb1fe5dc805e38c39e76bce Mon Sep 17 00:00:00 2001 From: Tollef Fog Heen Date: Mon, 1 Sep 2008 13:45:26 +0200 Subject: [PATCH] Do a setlocale in order to parse non-ascii options --- src/eweouz-write-addressbook.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- 2.39.5