#36 Parsing non english gcc output

None
wont-fix
orwelldevcpp
None
2014-01-28
2012-10-30
Hazardy
No

I updated (my self installed) MinGW to 4.7.0-1 and since then many messages vom gcc/g++ are in my native language (german).

Dev-C++ displays them, but it doesn't parse the file and linenumber. For example it shows:
In Elementfunktion »void KampfInfoWidget::schiebeNachUnten(const KampfInfo&, const QString&)«:
Aufzählungswert »BalkenKampfInformation« wird nicht von switch behandelt [-Wswitch]

And here the complete output vom g++:
meister_ui_kampf.cpp: In Elementfunktion »void KampfInfoWidget::schiebeNachUnten(const KampfInfo&, const QString&)«:
meister_ui_kampf.cpp:299:9: Warnung: Aufzählungswert »BalkenKampfInformation« wird nicht von switch behandelt [-Wswitch]

It should be possible to parse this so I easily can navigate to the error/warning.

Discussion

  • orwelldevcpp
    orwelldevcpp
    2014-01-28

    Came past this on the regular stroll through the bugtracker.

    If I want to fix this, I'd have to:
    - Obtain the current locale (German)
    - Find the abbreviation MinGW uses for that (ger/gr/de or anything).
    - Find the corresponding folder at MinGW\share\locale(abbrev).
    - Parse the whole file.
    - Find the English translation and process that instead.

    This is, to put it mildly, less than ideal. Therefore, I am not planning to fix this.

    A fix would be to remove the translations from MinGW\share\locale to force English output.

     
  • orwelldevcpp
    orwelldevcpp
    2014-01-28

    • status: open --> wont-fix
    • assigned_to: orwelldevcpp
    • Milestone: -->