Commit edd6be56 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.

(cherry picked from commit 24141590)
parent bbdd45e4
Pipeline #98293 passed with stage
in 10 minutes and 54 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);
}
......
Markdown is supported
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