Forward port of:

SVN commit 500799 by tilladam:

It's called latin9, not latin1. Thanks to Nicolas Goutte for pointing
out the error of my ways.

svn path=/trunk/KDE/kdepim/; revision=500801
wilder-work
Till Adam 20 years ago
parent 231f349593
commit 63cfced4bb
  1. 8
      configuredialog.cpp

@ -2290,13 +2290,13 @@ void AppearancePage::ReaderTab::readCurrentFallbackCodec()
currentEncoding = currentEncoding.replace( "iso ", "iso-", false );
///kdDebug(5006) << "Looking for encoding: " << currentEncoding << endl;
int i = 0;
int indexOfLatin1 = 0;
int indexOfLatin9 = 0;
bool found = false;
for( ; it != end; ++it)
{
const QString encoding = KGlobal::charsets()->encodingForName(*it);
if ( encoding == "iso-8859-15" )
indexOfLatin1 = i;
indexOfLatin9 = i;
if( false && encoding == currentEncoding )
{
mCharsetCombo->setCurrentItem( i );
@ -2305,8 +2305,8 @@ void AppearancePage::ReaderTab::readCurrentFallbackCodec()
}
i++;
}
if ( !found ) // nothing matched, use latin1
mCharsetCombo->setCurrentItem( indexOfLatin1 );
if ( !found ) // nothing matched, use latin9
mCharsetCombo->setCurrentItem( indexOfLatin9 );
}
void AppearancePage::ReaderTab::readCurrentOverrideCodec()

Loading…
Cancel
Save