summaryrefslogtreecommitdiff
path: root/tests/test-break.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-07-10 17:14:39 -0400
committerMatthias Clasen <mclasen@redhat.com>2021-07-10 18:50:07 -0400
commit5d8694fd3085ce6d870d49f96f9cdd07de151f8e (patch)
tree45c021b519e4281f7e814fa0bad2b30879043fbf /tests/test-break.c
parent6a28e306a4b4a779aa62f0eab4e2f1c70241345c (diff)
downloadpango-5d8694fd3085ce6d870d49f96f9cdd07de151f8e.tar.gz
tests: Locale handling fixes
The return value of setlocale is only good until the next call. Also, consistently use en_US.UTF-8.
Diffstat (limited to 'tests/test-break.c')
-rw-r--r--tests/test-break.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test-break.c b/tests/test-break.c
index 0158bd40..66c207a5 100644
--- a/tests/test-break.c
+++ b/tests/test-break.c
@@ -292,7 +292,7 @@ test_break (gconstpointer d)
gchar *diff;
char *old_locale = g_strdup (setlocale (LC_ALL, NULL));
- setlocale (LC_ALL, "en_US.utf8");
+ setlocale (LC_ALL, "en_US.UTF-8");
if (strstr (setlocale (LC_ALL, NULL), "en_US") == NULL)
{
char *msg = g_strdup_printf ("Locale en_US.UTF-8 not available, skipping break %s", filename);