summaryrefslogtreecommitdiffstats
path: root/tests/auto/network/access/qftp/tst_qftp.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>2016-04-06 09:06:12 +0200
committerFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>2016-04-07 04:25:57 +0000
commitd37239aa419ee4adff4b0a8d5c1403cadff72319 (patch)
treee5297144cecc71d30ce98511d7d4d7add69ed2d0 /tests/auto/network/access/qftp/tst_qftp.cpp
parent3ddb2c325e832afc7deef7a48c130408130f0d9e (diff)
QFtp: Use UTF-8 encoding.
According to RFC 2640, FTP uses UTF-8 encoding. Fix the conversions accordingly. Task-number: QTBUG-52303 Change-Id: I615199b3d074fc3861f25df113dda672525766b6 Reviewed-by: Edward Welbourne <edward.welbourne@theqtcompany.com> Reviewed-by: Richard J. Moore <rich@kde.org>
Diffstat (limited to 'tests/auto/network/access/qftp/tst_qftp.cpp')
-rw-r--r--tests/auto/network/access/qftp/tst_qftp.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/auto/network/access/qftp/tst_qftp.cpp b/tests/auto/network/access/qftp/tst_qftp.cpp
index 795548ccc8..bfc5a73cd8 100644
--- a/tests/auto/network/access/qftp/tst_qftp.cpp
+++ b/tests/auto/network/access/qftp/tst_qftp.cpp
@@ -732,10 +732,11 @@ void tst_QFtp::put_data()
QByteArray bigData( 10*1024*1024, 0 );
bigData.fill( 'A' );
- // test the two put() overloads in one routine
+ // test the two put() overloads in one routine with a file name containing
+ // U+0x00FC (latin small letter u with diaeresis) for QTBUG-52303, testing UTF-8
for ( int i=0; i<2; i++ ) {
QTest::newRow( QString("relPath01_%1").arg(i).toLatin1().constData() ) << QtNetworkSettings::serverName() << (uint)21 << QString() << QString()
- << QString("qtest/upload/rel01_%1") << rfc3252
+ << (QLatin1String("qtest/upload/rel01_") + QChar(0xfc) + QLatin1String("%1")) << rfc3252
<< (bool)(i==1) << 1;
/*
QTest::newRow( QString("relPath02_%1").arg(i).toLatin1().constData() ) << QtNetworkSettings::serverName() << (uint)21 << QString("ftptest") << QString("password")