/* GLIB - Library of useful routines for C programming
- * Copyright (C) 2006-2019 Free Software Foundation, Inc.
+ * Copyright (C) 2006-2023 Free Software Foundation, Inc.
*
* This file is not part of the GNU gettext program, but is used with
* GNU gettext.
fail_pos = NULL;
locale_data = localeconv ();
+#if HAVE_STRUCT_LCONV_DECIMAL_POINT
decimal_point = locale_data->decimal_point;
+#else
+ decimal_point = ".";
+#endif
decimal_point_len = strlen (decimal_point);
g_assert (decimal_point_len != 0);
_g_snprintf (buffer, buf_len, format, d);
locale_data = localeconv ();
+#if HAVE_STRUCT_LCONV_DECIMAL_POINT
decimal_point = locale_data->decimal_point;
+#else
+ decimal_point = ".";
+#endif
decimal_point_len = strlen (decimal_point);
g_assert (decimal_point_len != 0);
-# libglib.m4 serial 6
-dnl Copyright (C) 2006-2007, 2019-2020 Free Software Foundation, Inc.
+# libglib.m4 serial 7
+dnl Copyright (C) 2006-2007, 2019-2023 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
AC_CHECK_HEADERS([unistd.h])
dnl Don't bother checking for pthread.h and other multithread facilities.
+ AC_CHECK_MEMBERS([struct lconv.decimal_point], [], [],
+ [[#include <locale.h>]])
else
LIBGLIB_H=
fi