Browse Source

Expression evaluator: handle locale setting for decimal separator

NumericEvaluator uses the locale settings to determine the decimal
separator character which will be used when parsing expressions.
pull/5/merge
Maciej Suminski 8 years ago
parent
commit
9866196130
  1. 3
      common/libeval/numeric_evaluator.cpp

3
common/libeval/numeric_evaluator.cpp

@ -56,7 +56,8 @@ namespace numEval
NumericEvaluator :: NumericEvaluator() : pClParser(0)
{
cClDecSep = '.';
struct lconv* lc = localeconv();
cClDecSep = *lc->decimal_point;
bClTextInputStorage = true;

Loading…
Cancel
Save