about summary refs log tree commit diff
path: root/posix/tst-fnmatch.c
diff options
context:
space:
mode:
Diffstat (limited to 'posix/tst-fnmatch.c')
-rw-r--r--posix/tst-fnmatch.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/posix/tst-fnmatch.c b/posix/tst-fnmatch.c
index b582a51889..719361519c 100644
--- a/posix/tst-fnmatch.c
+++ b/posix/tst-fnmatch.c
@@ -118,7 +118,8 @@ main (void)
       /* Now run the actual test.  */
       ++ntests;
 
-      if (setlocale (LC_COLLATE, locale) == NULL)
+      if (setlocale (LC_COLLATE, locale) == NULL
+	  || setlocale (LC_CTYPE, locale) == NULL)
 	{
 	  puts ("*** Cannot set locale");
 	  ++nfailed;