mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-11 11:56:16 +01:00
tests: Add setlocale() call to spawn-singlethread
This allows non-ASCII characters to be used in test messages from it. Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
parent
c5f3ba7f01
commit
52dc7cb9dd
@ -24,6 +24,7 @@
|
||||
#include "config.h"
|
||||
|
||||
#include <glib.h>
|
||||
#include <locale.h>
|
||||
#include <string.h>
|
||||
#include <fcntl.h>
|
||||
|
||||
@ -427,6 +428,8 @@ main (int argc,
|
||||
char *dirname;
|
||||
int ret;
|
||||
|
||||
setlocale (LC_ALL, "");
|
||||
|
||||
g_test_init (&argc, &argv, NULL);
|
||||
|
||||
dirname = g_path_get_dirname (argv[0]);
|
||||
|
Loading…
Reference in New Issue
Block a user