summaryrefslogtreecommitdiff
path: root/tests/kolabobjecttest.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <mollekopf@kolabsys.com>2012-08-15 14:54:39 (GMT)
committerChristian Mollekopf <mollekopf@kolabsys.com>2012-08-15 14:54:39 (GMT)
commit1df40496032816d975930a0bdc5e22b714bf00e9 (patch)
tree905002c6f34b5a2b6e8bab447ec0ae79c596182a /tests/kolabobjecttest.cpp
parentb123e0604c7d6f9caab245006cc9f18d34af6210 (diff)
downloadlibkolab-1df40496032816d975930a0bdc5e22b714bf00e9.tar.gz
Specify explicitly what encoding we load.
Diffstat (limited to 'tests/kolabobjecttest.cpp')
-rw-r--r--tests/kolabobjecttest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/kolabobjecttest.cpp b/tests/kolabobjecttest.cpp
index 19d7de7..176afd0 100644
--- a/tests/kolabobjecttest.cpp
+++ b/tests/kolabobjecttest.cpp
@@ -26,7 +26,7 @@
void KolabObjectTest::preserveLatin1()
{
KCalCore::Event::Ptr event(new KCalCore::Event());
- QString summary("äöü%@$£é¤¼²°");
+ QString summary(QLatin1String("äöü%@$£é¤¼²°"));
event->setSummary(summary);
QCOMPARE(event->summary(), summary);
//std::cout << event->summary().toStdString() << std::endl;
@@ -41,7 +41,7 @@ void KolabObjectTest::preserveLatin1()
void KolabObjectTest::preserveUnicode()
{
KCalCore::Event::Ptr event(new KCalCore::Event());
- QString summary("€Š�ـأبـ☺");
+ QString summary(QString::fromUtf8("€Š�ـأبـ☺"));
event->setSummary(summary);
QCOMPARE(event->summary(), summary);
// std::cout << event->summary().toStdString() << std::endl;