Commit 24141590 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Convert test file to UTF-8

We tell MSVC that our source is UTF-8, but this file really is Latin-9. Chaos ensues.

Convert the file to UTF-8 using 'iconv -f ISO_8859-15 -t UTF-8 termgeneratortest.cpp' and adjust the code accordingly.

This fixes the build with MSVC.
parent af416584
Pipeline #98285 passed with stage
in 15 minutes and 38 seconds
......@@ -67,7 +67,7 @@ void TermGeneratorTest::testUnderscore_splitting()
void TermGeneratorTest::testAccetCharacters()
QString str = QString::fromLatin1("Como est Kg");
QString str = QString::fromUtf8("Como está Kûg");
Xapian::Document doc;
XapianTermGenerator termGen(&doc);
......@@ -80,8 +80,8 @@ void TermGeneratorTest::testAccetCharacters()
expectedWords << QStringLiteral("como")
<< QStringLiteral("esta")
<< QStringLiteral("kug")
<< QString::fromLatin1("est")
<< QString::fromLatin1("kg");
<< QString::fromUtf8("está")
<< QString::fromUtf8("kûg");
QCOMPARE(words, expectedWords);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment