mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 15:36:17 +01:00
tests: Add missing setlocale() call to file tests
This ensures that non-ASCII characters in the test output are printed correctly in the logs. Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
parent
b1ebb72522
commit
4fd789c160
@ -1,3 +1,4 @@
|
|||||||
|
#include <locale.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
@ -3008,6 +3009,8 @@ test_build_attribute_list_for_copy (void)
|
|||||||
int
|
int
|
||||||
main (int argc, char *argv[])
|
main (int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
setlocale (LC_ALL, "");
|
||||||
|
|
||||||
g_test_init (&argc, &argv, NULL);
|
g_test_init (&argc, &argv, NULL);
|
||||||
|
|
||||||
g_test_add_func ("/file/basic", test_basic);
|
g_test_add_func ("/file/basic", test_basic);
|
||||||
|
Loading…
Reference in New Issue
Block a user