use utf8 instead of the system encoding (#4582)
* use utf8 instead of the system preference * found another toLocal8Bit
This commit is contained in:
parent
92ed53e13a
commit
baaf261116
2 changed files with 2 additions and 2 deletions
|
@ -337,7 +337,7 @@ static void setupParserRules()
|
||||||
|
|
||||||
FilterString::FilterString(const QString &expr)
|
FilterString::FilterString(const QString &expr)
|
||||||
{
|
{
|
||||||
QByteArray ba = expr.simplified().toLocal8Bit();
|
QByteArray ba = expr.simplified().toUtf8();
|
||||||
|
|
||||||
std::call_once(init, setupParserRules);
|
std::call_once(init, setupParserRules);
|
||||||
|
|
||||||
|
|
|
@ -95,7 +95,7 @@ double Expression::eval(const peg::Ast &ast)
|
||||||
|
|
||||||
double Expression::parse(const QString &expr)
|
double Expression::parse(const QString &expr)
|
||||||
{
|
{
|
||||||
QByteArray ba = expr.toLocal8Bit();
|
QByteArray ba = expr.toUtf8();
|
||||||
|
|
||||||
math.enable_ast();
|
math.enable_ast();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue