localename: Fix test failure on OpenBSD >= 6.2.
commit926aced790385d79a76b2ab614650af892e85ea1
authorBruno Haible <bruno@clisp.org>
Sun, 16 Dec 2018 06:11:44 +0000 (16 07:11 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 16 Dec 2018 06:11:44 +0000 (16 07:11 +0100)
tree8f4e08d4ce223ddcc17c14940b7cb5facd16d2ed
parent5c572752cf36caad097128458e408183569ab29c
localename: Fix test failure on OpenBSD >= 6.2.

* m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Test for fake
locale system. Define HAVE_FAKE_LOCALES in this case.
* lib/localename.c (HAVE_GOOD_USELOCALE): New macro. Use it instead of
HAVE_USELOCALE.
* tests/test-localename.c (HAVE_GOOD_USELOCALE): New macro. Use it
instead of HAVE_NEWLOCALE && HAVE_USELOCALE.
* doc/posix-functions/uselocale.texi: Mention OpenBSD problem. Update
platforms list.
* doc/posix-functions/newlocale.texi: Likewise.
* doc/posix-functions/duplocale.texi: Update platforms list.
* doc/posix-functions/freelocale.texi: Likewise.
ChangeLog
doc/posix-functions/duplocale.texi
doc/posix-functions/freelocale.texi
doc/posix-functions/newlocale.texi
doc/posix-functions/uselocale.texi
lib/localename.c
m4/intl-thread-locale.m4
tests/test-localename.c