summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2005-04-15 08:09:42 (UTC)
committer zautrix <zautrix>2005-04-15 08:09:42 (UTC)
commitacb5803cdda97ef1369388eb15eb669e2835c06a (patch) (unidiff)
tree2fa7fa8e4392b7675a03209207470639c2187ca8
parent6a16de9a18235d2ddd771c97a4bb4512b43d181a (diff)
downloadkdepimpi-acb5803cdda97ef1369388eb15eb669e2835c06a.zip
kdepimpi-acb5803cdda97ef1369388eb15eb669e2835c06a.tar.gz
kdepimpi-acb5803cdda97ef1369388eb15eb669e2835c06a.tar.bz2
utf8 fix
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--microkde/kconfig.cpp6
1 files changed, 3 insertions, 3 deletions
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()
269 269
270 QFile f( mFileName ); 270 QFile f( mFileName );
271 if ( !f.open( IO_ReadOnly ) ) { 271 if ( !f.open( IO_ReadOnly ) ) {
272 //qDebug("KConfig: could not open file %s ",mFileName.latin1() ); 272 qDebug("KConfig: could not open file %s ",mFileName.latin1() );
273 return; 273 return;
274 } 274 }
275 275
@@ -277,7 +277,7 @@ void KConfig::load()
277 mStringMap.clear(); 277 mStringMap.clear();
278 278
279 QTextStream t( &f ); 279 QTextStream t( &f );
280 280 t.setEncoding( QTextStream::Latin1 );
281 QString line = t.readLine(); 281 QString line = t.readLine();
282 282
283 while ( !line.isNull() ) { 283 while ( !line.isNull() ) {
@@ -328,7 +328,7 @@ void KConfig::sync()
328 } 328 }
329 329
330 QTextStream t( &f ); 330 QTextStream t( &f );
331 331 t.setEncoding( QTextStream::Latin1 );
332 QMap<QString,bool>::ConstIterator itBool; 332 QMap<QString,bool>::ConstIterator itBool;
333 for( itBool = mBoolMap.begin(); itBool != mBoolMap.end(); ++itBool ) { 333 for( itBool = mBoolMap.begin(); itBool != mBoolMap.end(); ++itBool ) {
334 t << "bool," << itBool.key() << "," << ( *itBool ? "1" : "0" ) << endl; 334 t << "bool," << itBool.key() << "," << ( *itBool ? "1" : "0" ) << endl;