* mu.cc: setlocale (LC_ALL, "") to make non-ascii searches work
This commit is contained in:
@ -276,7 +276,7 @@ gboolean
|
|||||||
mu_config_init (MuConfigOptions *opts, int *argcp, char ***argvp)
|
mu_config_init (MuConfigOptions *opts, int *argcp, char ***argvp)
|
||||||
{
|
{
|
||||||
g_return_val_if_fail (opts, FALSE);
|
g_return_val_if_fail (opts, FALSE);
|
||||||
memset (opts, 0, sizeof(MuConfigOptions));
|
memset (opts, 0, sizeof(MuConfigOptions));
|
||||||
|
|
||||||
/* defaults are set in parse_params */
|
/* defaults are set in parse_params */
|
||||||
|
|
||||||
|
|||||||
@ -21,8 +21,8 @@
|
|||||||
|
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
#include <glib-object.h>
|
#include <glib-object.h>
|
||||||
#include <string.h>
|
|
||||||
#include <stdio.h> /* for fileno() */
|
#include <stdio.h> /* for fileno() */
|
||||||
|
#include <locale.h> /* for setlocale() */
|
||||||
|
|
||||||
#include "mu-config.h"
|
#include "mu-config.h"
|
||||||
#include "mu-cmd.h"
|
#include "mu-cmd.h"
|
||||||
@ -52,9 +52,11 @@ main (int argc, char *argv[])
|
|||||||
{
|
{
|
||||||
MuConfigOptions config;
|
MuConfigOptions config;
|
||||||
gboolean rv;
|
gboolean rv;
|
||||||
|
|
||||||
|
setlocale (LC_ALL, "");
|
||||||
|
|
||||||
g_type_init ();
|
g_type_init ();
|
||||||
|
|
||||||
if (!mu_config_init (&config, &argc, &argv))
|
if (!mu_config_init (&config, &argc, &argv))
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user