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:
Maciej Suminski 2017-11-24 16:13:07 +01:00
parent 78305c1de5
commit 9866196130
1 changed files with 2 additions and 1 deletions

View File

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