Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 5b75bbec authored by Sergio Martins's avatar Sergio Martins

knode: Also print the mime charset of failing test

parent 761c265e
......@@ -87,12 +87,11 @@ void KNodeTest::testUtilitiesLocale()
kcharsetVsMime.insert( "windows-1258", "WINDOWS-1258" );
kcharsetVsMime.insert( "winsami2", "WINSAMI2" );
// Check that every name from "KCharsets::availableEncodingNames()" will be taken into account
QStringList kcharsetNames = kcharsetVsMime.keys();
foreach( const QString &encName, KGlobal::charsets()->availableEncodingNames() ) {
if ( !kcharsetNames.contains( encName ) ) {
qWarning() << "Failing charset is: " << encName;
qWarning() << "Failing charset is: " << encName << "; mime charset=" << Locale::toMimeCharset( encName );
QVERIFY( false );
}
}
......
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