Avrggc : compilation "erreur" not detected

Bug #2004486 reported by Bas
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SimulIDE
New
Undecided
Unassigned

Bug Description

compilations errors are not detected with avrgcc.
problem is that gcc output are translate, for exemple :

td1Chenillard.cpp:13:2: erreur: «DDRAdsfg» n'a pas été déclaré dans cette portée

in compiler.cpp file :
int Compiler::getError( QString txt )
...
if( !line.contains( QRegExp("\\berror\\b") ) ) continue;
...

change LANG environment variable when compiling ?
Compiler::Compiler( CodeEditor* parent, OutPanelText* outPane )
        : QObject( parent )
        , m_compProcess( this )
{
    QProcessEnvironment env = QProcessEnvironment::systemEnvironment();
    env.insert(QStringLiteral("LANG"), QStringLiteral("C"));
    env.insert(QStringLiteral("LC_MESSAGES"), QStringLiteral("C"));
    m_compProcess.setProcessEnvironment(env);

Revision history for this message
Bas (bastien-jacquot-deactivatedaccount-deactivatedaccount) wrote :
Revision history for this message
arcachofo (arcachofo) wrote :

Not sure if this solution will work in Windows.
What do you think?

Revision history for this message
Bas (bastien-jacquot-deactivatedaccount-deactivatedaccount) wrote :

i don't know.
i try to compile on windows, it's a bit annoying !

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.