]> Savannah Git Hosting - gnulib.git/commitdiff
duplocale tests: Fix test crash on Linux/x86.
authorBruno Haible <bruno@clisp.org>
Sat, 23 Sep 2017 14:01:33 +0000 (16:01 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 23 Sep 2017 14:01:33 +0000 (16:01 +0200)
* tests/test-duplocale.c (test_with_uselocale): Disconnect the mixed2
locale from the current thread before freeing it.

ChangeLog
tests/test-duplocale.c

index 82ecf539aa9dc8c28a10010e338757cdcf587ad0..be1f9f8df46dd52b23f9631db3a6b3df2cba51e7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2017-09-23  Bruno Haible  <bruno@clisp.org>
+
+       duplocale tests: Fix test crash on Linux/x86.
+       * tests/test-duplocale.c (test_with_uselocale): Disconnect the mixed2
+       locale from the current thread before freeing it.
+
 2017-09-21  Paul Eggert  <eggert@cs.ucla.edu>
 
        mktime: port to OpenVMS
index 49ff0ff094b3eebadaba15d2d6fbf8dbbcbfbc26..9b2c4cf1d0db4cb71af541bb031d712b260ef35f 100644 (file)
@@ -115,6 +115,7 @@ test_with_uselocale (void)
   }
 
   setlocale (LC_ALL, "C");
+  uselocale (LC_GLOBAL_LOCALE);
   freelocale (mixed1);
   freelocale (mixed2);
   freelocale (perthread);