+2001-10-31 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
+
+ * configure.in: check also for locale.h, so that things work out
+ correctly with --disable-nls
+
2001-10-30 John Levon <moz@compsoc.man.ac.uk>
* README:
2001-10-30 John Levon <moz@compsoc.man.ac.uk>
* README:
# some standard header files
AC_HEADER_DIRENT
AC_HEADER_MAJOR
# some standard header files
AC_HEADER_DIRENT
AC_HEADER_MAJOR
-AC_CHECK_HEADERS(sys/time.h sys/types.h sys/select.h strings.h)
+AC_CHECK_HEADERS(sys/time.h sys/types.h sys/select.h strings.h locale.h)
# some annoying header files
#LYX_PATH_HEADER(stl_string_fwd.h)
# some annoying header files
#LYX_PATH_HEADER(stl_string_fwd.h)
+2001-10-31 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
+
+ * gettext.C (locale_init): set LC_NUMERIC to "C" even if nls is
+ disabled.
+
2001-10-30 John Levon <moz@compsoc.man.ac.uk>
* lyx_main.C: change ref to known bugs
2001-10-30 John Levon <moz@compsoc.man.ac.uk>
* lyx_main.C: change ref to known bugs
+#ifdef HAVE_LOCALE_H
+# include <locale.h>
+#endif
+
#include "LString.h"
#ifdef ENABLE_NLS
# if HAVE_GETTEXT
# include <libintl.h> // use the header already in the system *EK*
#include "LString.h"
#ifdef ENABLE_NLS
# if HAVE_GETTEXT
# include <libintl.h> // use the header already in the system *EK*
-# ifdef HAVE_LOCALE_H
-# include <locale.h> // for LC_MESSAGES
-# endif
# else
# include "../intl/libintl.h"
# endif
# else
# include "../intl/libintl.h"
# endif
{
# ifdef HAVE_LC_MESSAGES
setlocale(LC_MESSAGES, "");
{
# ifdef HAVE_LC_MESSAGES
setlocale(LC_MESSAGES, "");
setlocale(LC_CTYPE, "");
setlocale(LC_NUMERIC, "C");
setlocale(LC_CTYPE, "");
setlocale(LC_NUMERIC, "C");
}
void gettext_init(string const & localedir)
}
void gettext_init(string const & localedir)
void gettext_init(string const &)
{
void gettext_init(string const &)
{
+ setlocale(LC_NUMERIC, "C");