bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lose nls support in mutt when upgrade to gettext-0.15


From: Bruno Haible
Subject: Re: lose nls support in mutt when upgrade to gettext-0.15
Date: Thu, 28 Sep 2006 13:45:23 +0200
User-agent: KMail/1.9.1

Henry Nelson wrote:
> > > With all compile options, libraries, environment variables, etc.
> > > exactly the same as when building with previous versions of gettext,
> > > nls (ja_JP.eucJP) support is lost in Mutt, i.e., messages are in
> > > English instead of Japanese, after upgrading to gettext-0.15.  The
> > > previous version gettext-0.14.6 works fine.  This is tested with a
> > > static build (libintl.a) only.
> 
> gettext (both 0.15 and 0.14.6):
> http://ftp.gnu.org/pub/gnu/gettext/gettext-0.14.6.tar.gz  (same site for 0.15)
> % setenv LINGUAS ja
> % env CFLAGS="-O2" LDFLAGS="-Wl,-R/usr/local/lib" \
>   ./configure --prefix=/usr/local --program-prefix=g \
>   --with-included-gettext --with-libiconv-prefix=/usr/local \
>   --enable-static --enable-shared
> % gmake
> 
> mutt (1.5.13/patch-1.5.13.mutt-j.ja.1; also tested with 1.5.12):
> http://www.emaillab.org/mutt/1.5.13/mutt-1.5.13.tar.gz
> http://www.emaillab.org/mutt/1.5.13/patch-1.5.13.mutt-j.ja.1.gz
> % gpatch -p1 < ../patch-1.5.13.mutt-j.ja.1
> % setenv LINGUAS ja
> % setenv CFLAGS -O2
> % setenv LIBS -lz
> % setenv LDFLAGS -static
> % ./configure --prefix=/usr/local --with-slang=/usr/local \
>   --with-libiconv-prefix=/usr/local --enable-default-japanese \
>   --without-wc-funcs --enable-pop --enable-imap --with-ssl=/usr/local/ssl
> % gmake

You also need to "gmake install". Without it, the message catalogs are not
at the place where the program expects them.

> % uname -sr
> NetBSD 3.0.0_STABLE
> 
> % gcc --v
> Using built-in specs.
> Configured with: 
> /home/nick/work/netbsd/src/tools/gcc/../../gnu/dist/gcc/configure 
> --enable-long-long --disable-multilib --enable-threads --disable-symvers 
> --build=i386-unknown-netbsdelf2.0. --host=i386--netbsdelf 
> --target=i386--netbsdelf
> Thread model: posix
> gcc version 3.3.3 (NetBSD nb3 20040520)

With nearly the same settings as you (same NetBSD, same gcc, same
environment variables, but using another prefix instead of /usr/local,
and without --with-libiconv-prefix because NetBSD's iconv() is fine for me),
I get a link error because the mutt Makefile adds -I$(prefix)/include to
the CPPFLAGS without adding -L$(prefix)/lib to the INTLLIBS. After fixing
this locally, both makes complete fine and yield a mutt executable which
produces non-ASCII output for "LANG=ja_JP.eucJP mutt --help".

So, I cannot see a difference between gettext 0.14.6 and 0.15 here.

> > Did you have a look at mutt's config.log, to see/guess the origin of the
> > problem?
> 
> Sorry; no time.  However, "mutt -v" output lists "+ENABLE_NLS" and
> "+HAVE_ICONV".  It should "just work" (and does with 0.14.6).

Does the gettext FAQ (in the source distribution, gettext-tools/doc/FAQ.html),
section "My program compiles and links fine, but doesn't output translated
strings." give an insight?

Bruno




reply via email to

[Prev in Thread] Current Thread [Next in Thread]