Web lists-archives.com

Re: [Mingw-users] How to enable national language support (NLS)and install lanugage packge?

Thanks Eli Zaretskii for the reply.

I am sorry for my inaccuracy. Yes, I mean GCC and I want GCC to write out compiling messages in Chinese. 

I repeated my actions again.  Then I realized that I was confused with MinGW, MinGW-w64 and TDM-GCC. Their default configuration of NLS are quite different: gcc 4.9.3 in MinGW has "--enable-nls", but both gcc 5.3.0 in MinGW-w64 and gcc 4.9.2 in TDM-GCC have "--disable-nls".

Since this is the Mingw-users' maillist, now, my questions are: how could I get Mingw's NLS package, i.e. "gcc-4.9.3-1-mingw32-lang.tar.xz"? And, how to configure it so that GCC will write out compiling messages in Chinese?

Thanks in advance.

LI AnBang
Physics Department, Central China Normal University, China

------------------ Original ------------------
From:  "Eli Zaretskii";<eliz@xxxxxxx>;
Date:  Sat, May 7, 2016 02:46 PM
To:  "MinGW Users List"<mingw-users@xxxxxxxxxxxxxxxxxxxxx>;
Subject:  Re: [Mingw-users] How to enable national language support (NLS)and install lanugage packge?

> From: "LI An-Bang" <anbangli@xxxxxx>
> Date: Sat, 7 May 2016 11:21:31 +0800
> I am a Chinese user of MinGW on Windows. I want MinGW to write out compiling messages in Chinese.
> After some search and analysis on Internet, I realized that I should enable MinGW's national language support
> (NLS), and I also noticed that the released version has configured with "--disable-nls".
> So, my question is, how can I enable national language (NLS) support and install lanugage packge?

What do you mean by "MinGW" in this context?  Do you mean GCC?  How
did you notice that the released version was configured with --disable-nls?

In general, this setting is per-package.  For example, I have MinGW
GCC 4.9.3 installed on the system where I'm typing this, and it says:

  D:\>gcc -v
  Using built-in specs.
  Target: mingw32
  Configured with: ../src/gcc-4.9.3/configure --build=x86_64-pc-linux-gnu --host=mingw32 --prefix=/mingw --disable-win32-registry --target=mingw32 --with-arch=i586 --enable-languages=c,c++,objc,obj-c++,fortran,ada --enable-static --enable-shared --enable-threads --with-dwarf2 --disable-sjlj-exceptions --enable-version-specific-runtime-libs --enable-libstdcxx-debug --with-tune=generic --enable-nls
  Thread model: win32                                              ^^^^^^^^^^^^
  gcc version 4.9.3 (GCC)

The language-specific message catalogs come with the package.  They
are either part of the "binary" distribution, or might sometimes come
as a separate archive.  For example, for the above version of GCC, I
have gcc-4.9.3-1-mingw32-lang.tar.xz.

Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
MinGW-users mailing list

This list observes the Etiquette found at 
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

You may change your MinGW Account Options or unsubscribe at:
Also: mailto:mingw-users-request@xxxxxxxxxxxxxxxxxxxxx?subject=unsubscribe