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@kde.org CCMAIL: ralf.habacker@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; } _______________________________________________ Kstars-devel mailing list Kstars-devel@kde.org https://mail.kde.org/mailman/listinfo/kstars-devel