Wind4 / vlmcsd

KMS Emulator in C (currently runs on Linux including Android, FreeBSD, Solaris, Minix, Mac OS, iOS, Windows with or without Cygwin)
https://forums.mydigitallife.net/threads/50234
8.4k stars 2.26k forks source link

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

Closed gnaggnoyil closed 1 year ago

gnaggnoyil commented 4 years ago

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.