Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 363883 - Unable to handle localized GCC messages
Summary: Unable to handle localized GCC messages
Status: RESOLVED DUPLICATE of bug 304139
Alias: None
Product: CDT
Classification: Tools
Component: cdt-build (show other bugs)
Version: 8.1.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: cdt-build-inbox@eclipse.org CLA
QA Contact: Andrew Gvozdev CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-15 19:35 EST by Lucas CLA
Modified: 2012-02-23 11:30 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***