summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--tests/test-localename.c5
2 files changed, 10 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index c629b253f5..1911c0b286 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2023-04-05 Bruno Haible <bruno@clisp.org>
+ localename tests: Work around a Haiku bug.
+ * tests/test-localename.c (freelocale): New macro.
+
+2023-04-05 Bruno Haible <bruno@clisp.org>
+
localename: Add support for Haiku's per-thread locales.
* lib/localename.c: Include <dlfcn.h>.
(gl_locale_name_thread_unsafe): Add special code for Haiku.
diff --git a/tests/test-localename.c b/tests/test-localename.c
index 21b12e8b2e..d56d14ed0a 100644
--- a/tests/test-localename.c
+++ b/tests/test-localename.c
@@ -30,6 +30,11 @@
# define HAVE_GOOD_USELOCALE 1
#endif
+#ifdef __HAIKU__
+/* Work around Haiku bug <https://dev.haiku-os.org/ticket/18344>. */
+# define freelocale(loc) ((void) (loc))
+#endif
+
#if HAVE_GOOD_USELOCALE