Haiku has a bug in its locale_t memory management code.
It hits the Gnulib localename test. The workaround is to
never call freelocale().


2023-04-05  Bruno Haible  <br...@clisp.org>

        localename tests: Work around a Haiku bug.
        * tests/test-localename.c (freelocale): New macro.

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
 




Reply via email to