projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87cb246
)
Call setlocale in markup-parse test
author
Matthias Clasen
<mclasen@redhat.com>
Thu, 6 Oct 2011 12:59:51 +0000
(08:59 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Sat, 8 Oct 2011 23:02:06 +0000
(19:02 -0400)
This is necessary to make utf-8 text come out properly.
glib/tests/markup-parse.c
patch
|
blob
|
history
diff --git
a/glib/tests/markup-parse.c
b/glib/tests/markup-parse.c
index
fa45b77
..
00191d7
100644
(file)
--- a/
glib/tests/markup-parse.c
+++ b/
glib/tests/markup-parse.c
@@
-1,6
+1,7
@@
#undef G_DISABLE_ASSERT
#undef G_LOG_DOMAIN
+#include <locale.h>
#include <string.h>
#include <stdio.h>
#include <glib.h>
@@
-261,6
+262,8
@@
main (int argc, char *argv[])
const gchar *name;
gchar *path;
+ setlocale (LC_ALL, "");
+
g_test_init (&argc, &argv, NULL);
/* allow to easily generate expected output for new test cases */