From: Bruno Haible Date: Sat, 23 Sep 2017 14:01:33 +0000 (+0200) Subject: duplocale tests: Fix test crash on Linux/x86. X-Git-Tag: v1.0~5910 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=96335dc0af877d7d4e5353c3c7c509b930b1df98;p=gnulib.git 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. --- diff --git a/ChangeLog b/ChangeLog index 82ecf539aa..be1f9f8df4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2017-09-23 Bruno Haible + + 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 mktime: port to OpenVMS diff --git a/tests/test-duplocale.c b/tests/test-duplocale.c index 49ff0ff094..9b2c4cf1d0 100644 --- a/tests/test-duplocale.c +++ b/tests/test-duplocale.c @@ -115,6 +115,7 @@ test_with_uselocale (void) } setlocale (LC_ALL, "C"); + uselocale (LC_GLOBAL_LOCALE); freelocale (mixed1); freelocale (mixed2); freelocale (perthread);