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

Bug#211816: NLS support broken



Package: dpkg
Version: 1.10.13
Severity: serious

Hello,

As you know, i18n support in Dpkg was broken in version 1.10.11.

The change that caused this was moving to gettext >= 0.11, which removed
intl/ from the sources.

Apparently, the gettext macros were generating a HAVE_SETLOCALE
definition in config.h, and this was dropped in the newer gettexts.

In include/dpkg.h.in, we have:


/* Take care of NLS matters.  */

#if HAVE_LOCALE_H 
# include <locale.h>
#endif
#if !HAVE_SETLOCALE
# define setlocale(Category, Locale) /* empty */
#endif
[...]

which breaks as HAVE_SETLOCALE isn't defined anymore, and the setlocale
calls in all the dpkg suite aren't working.


Either include that setlocale define in the ENABLE_NLS ifdef below
(which I don't know if it's the right thing, anyway), or cook your own
setlocale check in configure.

FWIW, I haven't seen other programs check for setlocale, but maybe the
rest are broken :)

Jordi

-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux nubol 2.6.0-test5 #1 Mon Sep 15 03:23:41 CEST 2003 i686
Locale: LANG=en_GB, LC_CTYPE=en_GB

Versions of packages dpkg depends on:
ii  dselect                       1.10.13    a user tool to manage Debian packa
ii  libc6                         2.3.2-7    GNU C Library: Shared libraries an

-- no debconf information




Reply to: