mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-23 16:52:02 +00:00
Fix the floats-dont-like-locales problem
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_1_6@1376 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
9406d5930d
commit
65c0c3750a
@ -1,3 +1,9 @@
|
|||||||
|
2001-01-24 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
|
||||||
|
|
||||||
|
* src/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>
|
2001-01-24 Dekel Tsur <dekelts@tau.ac.il>
|
||||||
|
|
||||||
* src/trans.C (process): Fix the keymap bug.
|
* src/trans.C (process): Fix the keymap bug.
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
|
#include <clocale>
|
||||||
|
|
||||||
#ifdef __GNUG__
|
#ifdef __GNUG__
|
||||||
#pragma implementation
|
#pragma implementation
|
||||||
@ -108,6 +109,9 @@ LyXGUI::LyXGUI(LyX * owner, int * argc, char * argv[], bool GUI)
|
|||||||
|
|
||||||
static const int num_res = sizeof(res)/sizeof(FL_resource);
|
static const int num_res = sizeof(res)/sizeof(FL_resource);
|
||||||
fl_initialize(argc, argv, "LyX", cmdopt, num_res);
|
fl_initialize(argc, argv, "LyX", cmdopt, 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);
|
fl_get_app_resources(res, num_res);
|
||||||
|
|
||||||
static const int geometryBitmask =
|
static const int geometryBitmask =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user