Merge pull request #1319 from keepassxreboot/hotfix/testcsvparser-encoding

Correct encoding ambiguity in CSV Parser unicode test
This commit is contained in:
Janek Bevendorff 2017-12-25 21:24:35 +01:00 committed by GitHub
commit 497eb3c587
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -320,6 +320,7 @@ void TestCsvParser::testUnicode() {
//ERROR QChar g("\u20AC");
parser->setFieldSeparator(QChar('A'));
QTextStream out(file.data());
out.setCodec("UTF-8");
out << QString("€1A2śA\"3śAż\"Ażac");
QVERIFY(parser->parse(file.data()));