mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-05 00:46:16 +01:00
Call setlocale in markup-parse test
This is necessary to make utf-8 text come out properly.
This commit is contained in:
parent
87cb246f46
commit
08e17ae51b
@ -1,6 +1,7 @@
|
|||||||
#undef G_DISABLE_ASSERT
|
#undef G_DISABLE_ASSERT
|
||||||
#undef G_LOG_DOMAIN
|
#undef G_LOG_DOMAIN
|
||||||
|
|
||||||
|
#include <locale.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
@ -261,6 +262,8 @@ main (int argc, char *argv[])
|
|||||||
const gchar *name;
|
const gchar *name;
|
||||||
gchar *path;
|
gchar *path;
|
||||||
|
|
||||||
|
setlocale (LC_ALL, "");
|
||||||
|
|
||||||
g_test_init (&argc, &argv, NULL);
|
g_test_init (&argc, &argv, NULL);
|
||||||
|
|
||||||
/* allow to easily generate expected output for new test cases */
|
/* allow to easily generate expected output for new test cases */
|
||||||
|
Loading…
Reference in New Issue
Block a user