GetUnixCompilerInfo fails on LANG=de_DE.UTF8
matthiasbeyer opened this issue · 1 comments
matthiasbeyer commented
CppSharp/src/Parser/ParserOptions.cs
Lines 193 to 235 in b658ff3
This function fails to find the GCC compiler on my system with my normal LANG=de_DE.UTF8
, but succeeds if I export LANG=C
before running the relevant code.
Unfortunately the Code running this is proprietary, so I cannot share more about it, but it is literally:
$ ./myCode # fails
$ export LANG=C
$ ./myCode # succeeds
matthiasbeyer commented
I found the actual issue.
You re-used your error message in the function, so I assumed that the first exception is thrown, when it is actually the second one.
And the regex just does not match, because with german locale, "version" is written "Version" in the compiler output of gcc -v
.