diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2020-09-16 12:14:22 +0200 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2020-09-16 12:15:54 +0200 |
| commit | c9bee9ba8068bb11a61ff4a8ee64d01abce79b4a (patch) | |
| tree | 54605e773a5b7bc354a9909ee2e7d9aa1e68d141 /fluid/fluid.cxx | |
| parent | e2a249fca99ab91e1bc472e3379c5bcad715221f (diff) | |
Fix fluid output for international languages
The fluid version and other values in .fl files are written as float
values which means that locale settings apply since we enabled the
locale with "setlocale()".
Update the "rebuild" target in fluid and src folders to update
the fluid (.fl) files and related {.cxx|.h} files.
Diffstat (limited to 'fluid/fluid.cxx')
| -rw-r--r-- | fluid/fluid.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fluid/fluid.cxx b/fluid/fluid.cxx index dcea17e7c..1f7e27790 100644 --- a/fluid/fluid.cxx +++ b/fluid/fluid.cxx @@ -1750,7 +1750,9 @@ static void sigint(SIGARG) { int main(int argc,char **argv) { int i = 1; - setlocale(LC_ALL, ""); // enable multilanguage errors in file chooser + setlocale(LC_ALL, ""); // enable multilanguage errors in file chooser + setlocale(LC_NUMERIC, "C"); // make sure numeric values are written correctly + if (!Fl::args(argc,argv,i,arg) || i < argc-1) { static const char *msg = "usage: %s <switches> name.fl\n" |
