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:
5e0be9e
)
Make the markup-parse test independent of the locale
author
Matthias Clasen
<mclasen@redhat.com>
Fri, 13 Apr 2012 13:31:08 +0000
(09:31 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Fri, 13 Apr 2012 13:39:48 +0000
(09:39 -0400)
I added a setlocale call, because we need it for Unicode to
come out right; but I forgot to fix the locale, so we now
fail when comparing error messages to the expected (English)
result. Correct this by setting LANG explicitly to en_US.utf-8.
https://bugzilla.gnome.org/show_bug.cgi?id=669285
glib/tests/markup-parse.c
patch
|
blob
|
history
diff --git
a/glib/tests/markup-parse.c
b/glib/tests/markup-parse.c
index
7c1a044
..
5adc272
100644
(file)
--- a/
glib/tests/markup-parse.c
+++ b/
glib/tests/markup-parse.c
@@
-281,6
+281,7
@@
main (int argc, char *argv[])
const gchar *name;
gchar *path;
+ g_setenv ("LANG", "en_US.utf-8", TRUE);
setlocale (LC_ALL, "");
g_test_init (&argc, &argv, NULL);