Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 363883

Summary: Unable to handle localized GCC messages
Product: [Tools] CDT Reporter: Lucas <lvella>
Component: cdt-buildAssignee: cdt-build-inbox <cdt-build-inbox>
Status: RESOLVED DUPLICATE QA Contact: Andrew Gvozdev <angvoz.dev>
Severity: normal    
Priority: P3 CC: cdtdoug
Version: 8.1.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Lucas CLA 2011-11-15 19:35:24 EST
Build Identifier: 20110916-0149

Recent versions of GCC have localized messages in my native language (Brazilian Portuguese). When parsing GCC output in search of headers paths, Eclipse is unable to handle the localized messages, thus is unable to find the headers for the indexer.

The problem is described at least twice in the forum:
http://www.eclipse.org/forums/index.php/t/247954/
http://www.eclipse.org/forums/index.php/t/261852/

Once I knew what was the problem, setting the environment variable LC_ALL=C in the building configuration was an easy workaround.

To solve this bug, I'd suggest to explicitly set LC_MESSAGES when invoking GCC, when to parse its output.

Reproducible: Always

Steps to Reproduce:
1. Use a system with a recent GCC (such as Ubuntu 11.10, GCC 4.6.1).
2. Install support for Portuguese (Brazil) language in your system.
3. Set your locale to pt_BR.utf8 (export LANG=pt_BR.utf8)
4. Run Eclipse
5. Create a Hello World project
6. Open the source code, the problem is visible right away.
Comment 1 Andrew Gvozdev CLA 2011-11-15 23:17:51 EST

*** This bug has been marked as a duplicate of bug 304139 ***