c++ - How to force gcc to ignore localisation -


my localisation set german , gcc outputs german compiler warnings codeblocks handles warnings errors , doesn't let me run application. got far figured out need force gcc output english warnings answers found "set systems language english" don't want so. how can force gcc output compiler warnings in english without changing entire system language?

gcc uses lang, lc_messages , lc_all environment variables.

the cause of gcc printing messags in german lang set de_de.utf-8 unset (or set default posix locale, c, or english locale such en_us) before running gcc.

if can't adjust command-line codeblocks uses invoke compiler should able adjust environment before running codeblocks, e.g. instead of running codeblocks start ide (or whatever command start ide is) run lang=c codeblocks

that alter environment codeblocks process , child processes runs, including compiler commands runs.

if doesn't work check maybe have lc_all or lc_messages set in environment (you can check echo "lc_all $lc_all, lc_messages $lc_messages";) can override that:

lc_all=c codeblocks 

Comments

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -

Nuget pack csproj using nuspec -