On DragonFly BSD 3.8, I'm seeing this failure:
FAIL: test-localename ===================== ../../gltests/test-localename.c:183: assertion 'strcmp (name, "fr_FR.UTF-8") == 0' failed FAIL test-localename (exit status: 134) This fixes it. 2017-06-11 Bruno Haible <br...@clisp.org> localename: Fix test failure on DragonFly BSD. * lib/localename.c (gl_locale_name_thread_unsafe): Treat DragonFly BSD like FreeBSD. diff --git a/lib/localename.c b/lib/localename.c index eb0755c..3a11928 100644 --- a/lib/localename.c +++ b/lib/localename.c @@ -2703,7 +2703,7 @@ gl_locale_name_thread_unsafe (int category, const char *categoryname) nl_langinfo (_NL_LOCALE_NAME (category)). */ name = thread_locale->__names[category]; return name; -# elif defined __FreeBSD__ || (defined __APPLE__ && defined __MACH__) +# elif (defined __FreeBSD__ || defined __DragonFly__) || (defined __APPLE__ && defined __MACH__) /* FreeBSD, Mac OS X */ int mask;