+2001-01-24 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
+
+ * lyx_gui.C (LyXGUI): force the LC_NUMERIC locale to "C" after
+ calling fl_initialize(). This fixes the problem with ',' as
+ decimal separator in text files.
+
2001-01-24 Dekel Tsur <dekelts@tau.ac.il>
* trans.C (process): Fix the keymap bug.
#include <config.h>
#include <cstdlib>
+#include <clocale>
#ifdef __GNUG__
#pragma implementation
static const int num_res = sizeof(res)/sizeof(FL_resource);
fl_initialize(argc, argv, "LyX", cmdopt, num_res);
- fl_get_app_resources(res, num_res);
+ // It appears that, in xforms >=0.89.5, fl_initialize()
+ // calls setlocale() and ruins our LC_NUMERIC setting.
+ setlocale(LC_NUMERIC, "C");
+ fl_get_app_resources(res, num_res);
static const int geometryBitmask =
XParseGeometry( geometry,