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

Bug#392063: apt: build problem when configured with --disable-nls



Package: apt
Version: 0.6.46
Severity: normal
Tags: patch

When configuring apt with "--disable-nls", textdomain(3) should not be called. This can be achived by modifying buildlib/apti18n.h.in to read:

#ifdef USE_NLS
// apt will use the gettext implementation of the C library
# include <libintl.h>
# ifdef APT_DOMAIN
#   define _(x) dgettext(APT_DOMAIN,x)
# else
#   define _(x) gettext(x)
# endif
#else
// apt will not use any gettext
# define setlocale(a, b)
# define textdomain(a)     // <--- this line added
# define _(x) x
#endif



Reply to: