[Kstars-devel] KDE/kdeedu/kstars/kstars

Jason Harris kstars at 30doradus.org
Thu Sep 4 15:52:17 CEST 2008


SVN commit 857041 by harris:

Apply small patch from Ralf Habacker to fix reading of UTF-8-encoded files on 
win32.  Though linux systems don't seem to need the call to 
QTextStream::setEncoding("UTF-8"), it doesn't seem to do any harm, so I added the 
two calls without any #ifdef wrappers.

Thanks for the patch Ralf!

CCMAIL: kstars-devel at kde.org
CCMAIL: ralf.habacker at freenet.de



 M  +2 -0      ksfilereader.cpp  


--- trunk/KDE/kdeedu/kstars/kstars/ksfilereader.cpp #857040:857041
@@ -39,6 +39,7 @@
 {
     QIODevice* device = (QIODevice*) & file;
     QTextStream::setDevice( device );
+    QTextStream::setCodec("UTF-8");
     m_targetLine = MAXUINT;
 }
 
@@ -49,6 +50,7 @@
         return false;
     }
     QTextStream::setDevice( &m_file );
+    QTextStream::setCodec("UTF-8");
     return true;
 }
 


More information about the Kstars-devel mailing list