mirror of https://github.com/djcb/mu.git
* mu.cc: setlocale (LC_ALL, "") to make non-ascii searches work
This commit is contained in:
parent
0ad1fb1165
commit
6b3272fb8c
|
@ -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 */
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue