output encoding

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3071 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
rabla 2005-04-02 11:19:47 +00:00
parent 7abe1ad2b6
commit 793516869b

View File

@ -415,8 +415,7 @@ void QgsGrassModule::readStdout()
QString line;
while ( mProcess.canReadLineStdout() ) {
line = mProcess.readLineStdout ();
//std::cerr << "stdout: " << line << std::endl;
line = QString::fromLocal8Bit( mProcess.readLineStdout().ascii() );
mOutputTextBrowser->append ( line );
}
}
@ -433,8 +432,9 @@ void QgsGrassModule::readStderr()
QRegExp rxerror ( "GRASS_INFO_ERROR\\(\\d+,\\d+\\): (.*)" );
QRegExp rxend ( "GRASS_INFO_END\\(\\d+,\\d+\\)" );
while ( mProcess.canReadLineStderr() ) {
line = mProcess.readLineStderr ();
line = QString::fromLocal8Bit( mProcess.readLineStderr().ascii() );
//std::cerr << "stderr: " << line << std::endl;
if ( rxpercent.search ( line ) != -1 ) {