vlmcsd icon indicating copy to clipboard operation
vlmcsd copied to clipboard

Fix bug in GCC's target platform detection under some non-English locales

Open gnaggnoyil opened this issue 4 years ago • 0 comments

According to GNU gettext's documention, the environment variable LANGUAGE will be considered in priority than LANG when GNU gettext tries to get locale-dependent contents. Therefore, for an environment where LANGUAGE is set to some value other than English(e.g. zh_CN), only specifying LANG to be en_US.UTF-8 is not enough to let GCC output English contents thus TARGETPLATFORM would be unable to be obtained and eventually a build error would occur. This PR is intended to fix this problem.

gnaggnoyil avatar May 12 '20 11:05 gnaggnoyil