#1684 Localization not working properly on Windows

gcc (462)

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.


  • LH_Mouse

    LH_Mouse - 2012-12-10
  • LH_Mouse

    LH_Mouse - 2012-12-10
    • priority: 5 --> 3
  • Earnie Boyd

    Earnie Boyd - 2012-12-19
    • assigned_to: nobody --> cstrauss
  • Earnie Boyd

    Earnie Boyd - 2012-12-19

    Cesar is there anything we can do about this?

  • Cesar Strauss

    Cesar Strauss - 2012-12-19

    The search path for the translation files seems to be hard-coded to \MinGW in GCC source code. This code must be made relocatable. Please file a bug at http://gcc.gnu.org/bugs.


  • Earnie Boyd

    Earnie Boyd - 2013-01-08
    • milestone: 3892664 --> component_package
    • status: open --> pending-remind
  • Earnie Boyd

    Earnie Boyd - 2013-02-04
    • status: pending-remind --> pending
    • resolution: --> none
    • category: --> Unknown
    • milestone: component_package --> OTHER
  • Earnie Boyd

    Earnie Boyd - 2013-02-11
    • status: pending --> open
    • type: --> Bug
    • patch_attached: --> False

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks