Switching Quantity parser to UTF8

This commit is contained in:
jriegel
2013-12-09 23:49:42 +01:00
parent df363e94f3
commit 401cb13035
9 changed files with 12 additions and 10 deletions

View File

@@ -134,7 +134,7 @@ PyObject* UnitsApi::sParseQuantity(PyObject * /*self*/, PyObject *args,PyObject
Quantity rtn;
try {
rtn = Quantity::parse(pstr);
rtn = Quantity::parse(QString::fromLatin1(pstr));
}
catch (const Base::Exception&) {
PyErr_Format(PyExc_IOError, "invalid unit expression \n");