From acb5803cdda97ef1369388eb15eb669e2835c06a Mon Sep 17 00:00:00 2001 From: zautrix Date: Fri, 15 Apr 2005 08:09:42 +0000 Subject: utf8 fix --- (limited to 'microkde') diff --git a/microkde/kconfig.cpp b/microkde/kconfig.cpp index b9cf2f1..9598274 100644 --- a/microkde/kconfig.cpp +++ b/microkde/kconfig.cpp @@ -269,7 +269,7 @@ void KConfig::load() QFile f( mFileName ); if ( !f.open( IO_ReadOnly ) ) { - //qDebug("KConfig: could not open file %s ",mFileName.latin1() ); + qDebug("KConfig: could not open file %s ",mFileName.latin1() ); return; } @@ -277,7 +277,7 @@ void KConfig::load() mStringMap.clear(); QTextStream t( &f ); - + t.setEncoding( QTextStream::Latin1 ); QString line = t.readLine(); while ( !line.isNull() ) { @@ -328,7 +328,7 @@ void KConfig::sync() } QTextStream t( &f ); - + t.setEncoding( QTextStream::Latin1 ); QMap::ConstIterator itBool; for( itBool = mBoolMap.begin(); itBool != mBoolMap.end(); ++itBool ) { t << "bool," << itBool.key() << "," << ( *itBool ? "1" : "0" ) << endl; -- cgit v0.9.0.2