Platform: Windows Server 2003 Enterprise SP2 (Internal 3790), x86, Simplified Chinese
MinGW version: 20120426
GCC version: 4.7.2
Description: Locale language files are only searched in the same drive where gcc/g++/cc is started from CUI. If gcc is started from a drive that is different from that where mingw is installed, it fails to find locale files and falls back to en.
Steps to reproduce:
1. On Windows in East Asian language, install MinGW into E:\MinGW. Now there is a directory with the path E:\MinGW\share\locale.
2. Open cmd.exe, type PATH E:\MinGW\bin;%PATH% <enter>.
3. Type E: <enter>.
4. Type g++ -v <enter>. The message text is in Chinese.
5. Type D: <enter>.
6. Type g++ -v <enter>. The message text is in English.
7. Type md \MinGW\share <enter>.. This will make the directory D:\MinGW\share.
8. Type xcopy E:\MinGW\share\locale D:\MinGW\share\locale\ /e /c /y <enter>. This will recursively copy all locale files from drive E: to drive D:, without changing the full path of each file except the drive latter.
9. Type g++ -v <enter>. The message text is in Chinese now.
Log in to post a comment.