[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdelibs/kdecore/tests
From: Waldo Bastian <bastian () kde ! org>
Date: 2002-12-18 15:55:56
[Download RAW message or body]
CVS commit by waba:
Add test for mishandling of encoding by fileName()
M +6 -0 kurltest.cpp 1.66
--- kdelibs/kdecore/tests/kurltest.cpp #1.65:1.66
@@ -578,4 +578,10 @@ int main(int argc, char *argv[])
check("com2.url()", com2.url(), "http://server.com/dir/blubb/blah/");
+ KURL utf8_1("audiocd:/By%20Name/15%20Geantra%C3%AE.wav", 106);
+ check("utf8_1.fileName()", utf8_1.fileName(), QString::fromLatin1("15 Geantraî.wav"));
+
+ KURL utf8_2("audiocd:/By%20Name/15%2fGeantra%C3%AE.wav", 106);
+ check("utf8_2.fileName()", utf8_2.fileName(), QString::fromLatin1("15/Geantraî.wav"));
+
printf("\nTest OK !\n");
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic