* mu.cc: setlocale (LC_ALL, "") to make non-ascii searches work

This commit is contained in:
Dirk-Jan C. Binnema 2010-09-04 12:58:45 +03:00
parent 0ad1fb1165
commit 6b3272fb8c
2 changed files with 5 additions and 3 deletions

View File

@ -276,7 +276,7 @@ gboolean
mu_config_init (MuConfigOptions *opts, int *argcp, char ***argvp)
{
g_return_val_if_fail (opts, FALSE);
memset (opts, 0, sizeof(MuConfigOptions));
memset (opts, 0, sizeof(MuConfigOptions));
/* defaults are set in parse_params */

View File

@ -21,8 +21,8 @@
#include <glib.h>
#include <glib-object.h>
#include <string.h>
#include <stdio.h> /* for fileno() */
#include <locale.h> /* for setlocale() */
#include "mu-config.h"
#include "mu-cmd.h"
@ -52,9 +52,11 @@ main (int argc, char *argv[])
{
MuConfigOptions config;
gboolean rv;
setlocale (LC_ALL, "");
g_type_init ();
if (!mu_config_init (&config, &argc, &argv))
return 1;