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.
This commit is contained in:
parent
78305c1de5
commit
9866196130
|
@ -56,7 +56,8 @@ namespace numEval
|
|||
|
||||
NumericEvaluator :: NumericEvaluator() : pClParser(0)
|
||||
{
|
||||
cClDecSep = '.';
|
||||
struct lconv* lc = localeconv();
|
||||
cClDecSep = *lc->decimal_point;
|
||||
|
||||
bClTextInputStorage = true;
|
||||
|
||||
|
|
Loading…
Reference in New Issue