Opened 17 years ago

#50 new defect

mgr/cmt_gcc_version.sh: gcc version not recognized for certain locales

Reported by: Wolfgang.Friebel@… Owned by: arnault
Priority: low Milestone:
Component: c. Core Version:
Severity: minor Keywords:
Cc: OS: All
If Other, could you precise: Experiment: Other
If Other, could you precise:
Stack trace:
Steps to reproduce: LANG=de_DE.utf8 mgr/cmt_gcc_version.sh
yields no output

Proposed fix: line 1 of that script should be changed to
LANG=C gcc -v 2>&1 |\

Description

cmt_gcc_version.sh gives no output when the LOCALE (LANG Variable) is set to certain non standard values, such as german or spanish.

Symptom: cmt config and other commands issue a warning: #CMT> Warning: apply_tag with empty name [$(cmt_compiler_version)]

This can easily be fixed by changing LANG before calling gcc.

That behaviour might be observed in similar scripts as well (depending whether the version messages are localized).

Best regards, Wolfgang Friebel

Change History (0)

Note: See TracTickets for help on using tickets.