diff options
author | Philip Withnall <pwithnall@endlessos.org> | 2021-06-07 12:44:58 +0100 |
---|---|---|
committer | Philip Withnall <pwithnall@endlessos.org> | 2021-06-07 12:44:58 +0100 |
commit | 4fd789c1603c73a53a73b0130ed7682111a6f113 (patch) | |
tree | 66f1bacb2990c4935d2f43a168234630f122fc34 | |
parent | b1ebb7252277f13acc3854b0eb972d2514599e5c (diff) | |
download | glib-4fd789c1603c73a53a73b0130ed7682111a6f113.tar.gz |
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>
-rw-r--r-- | gio/tests/file.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gio/tests/file.c b/gio/tests/file.c index b2e1f3d46..2f1b7b310 100644 --- a/gio/tests/file.c +++ b/gio/tests/file.c @@ -1,3 +1,4 @@ +#include <locale.h> #include <string.h> #include <stdio.h> #include <stdlib.h> @@ -3008,6 +3009,8 @@ test_build_attribute_list_for_copy (void) int main (int argc, char *argv[]) { + setlocale (LC_ALL, ""); + g_test_init (&argc, &argv, NULL); g_test_add_func ("/file/basic", test_basic); |