forked from qt-creator/qt-creator
		
	properly decode messages from gdb
... using fromLocal8Bit instead of fromLatin1. of course the localized messages pose a "challenge" for the various workarounds which parse them ... Task-number: QTCREATORBUG-504
This commit is contained in:
		@@ -108,7 +108,7 @@ void CoreGdbAdapter::handleFileExecAndSymbols(const GdbResponse &response)
 | 
			
		||||
        showStatusMessage(tr("Symbols found."));
 | 
			
		||||
    } else {
 | 
			
		||||
        QString msg = tr("Loading symbols from \"%1\" failed:\n").arg(m_executable)
 | 
			
		||||
            + __(response.data.findChild("msg").data());
 | 
			
		||||
            + QString::fromLocal8Bit(response.data.findChild("msg").data());
 | 
			
		||||
        showMessageBox(QMessageBox::Warning, tr("Error Loading Symbols"), msg);
 | 
			
		||||
    }
 | 
			
		||||
    loadCoreFile();
 | 
			
		||||
@@ -160,7 +160,7 @@ void CoreGdbAdapter::handleTargetCore(const GdbResponse &response)
 | 
			
		||||
        m_engine->updateAll();
 | 
			
		||||
    } else {
 | 
			
		||||
        QString msg = tr("Attach to core \"%1\" failed:\n").arg(startParameters().coreFile)
 | 
			
		||||
            + __(response.data.findChild("msg").data());
 | 
			
		||||
            + QString::fromLocal8Bit(response.data.findChild("msg").data());
 | 
			
		||||
        emit inferiorStartFailed(msg);
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user