diff --git a/src/modules/locale/LocaleConfiguration.cpp b/src/modules/locale/LocaleConfiguration.cpp index ca6316fc5..096d0dc4e 100644 --- a/src/modules/locale/LocaleConfiguration.cpp +++ b/src/modules/locale/LocaleConfiguration.cpp @@ -60,7 +60,8 @@ LocaleConfiguration::fromLanguageAndLocation( const QString& languageLocale, // FIXME: this might be useless if we already filter out non-UTF8 locales foreach ( QString line, linesForLanguage ) { - if ( line.contains( "UTF-8" ) ) + if ( line.contains( "UTF-8", Qt::CaseInsensitive ) || + line.contains( "utf8", Qt::CaseInsensitive ) ) linesForLanguageUtf.append( line ); } diff --git a/src/modules/locale/LocalePage.cpp b/src/modules/locale/LocalePage.cpp index ed166ea35..88b030ffe 100644 --- a/src/modules/locale/LocalePage.cpp +++ b/src/modules/locale/LocalePage.cpp @@ -365,7 +365,8 @@ LocalePage::init( const QString& initialRegion, // because it's not 1995. for ( auto it = m_localeGenLines.begin(); it != m_localeGenLines.end(); ) { - if ( !it->contains( "UTF-8", Qt::CaseInsensitive ) ) + if ( !it->contains( "UTF-8", Qt::CaseInsensitive ) && + !it->contains( "utf8", Qt::CaseInsensitive ) ) it = m_localeGenLines.erase( it ); else ++it;