From: Frédéric Marchal Date: Fri, 5 Mar 2010 20:11:26 +0000 (+0000) Subject: Fix encoding problem in gettext translated strings X-Git-Tag: v2.3-pre2~63 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cec3eed3bc02976d6a7c9948bd6295a8ed2d1096;p=thirdparty%2Fsarg.git Fix encoding problem in gettext translated strings --- diff --git a/configure.in b/configure.in index d42a1c2..c7f032d 100644 --- a/configure.in +++ b/configure.in @@ -125,11 +125,6 @@ AC_CHECK_FUNCS(backtrace) AC_CHECK_FUNCS(symlink) AC_CHECK_FUNCS(lstat) -dnl check for macros -AC_CHECK_DECL(LC_MESSAGES,[AC_DEFINE(HAVE_LC_MESSAGES,1,[Have LC_MESSAGES])],[],[[#ifdef HAVE_LOCALE_H -#include -#endif]]) - dnl check for the rlim_t size AC_CHECK_SIZEOF(rlim_t,1,[#if HAVE_SYS_RESOURCE_H #include diff --git a/log.c b/log.c index 4f28276..365bf83 100644 --- a/log.c +++ b/log.c @@ -155,8 +155,8 @@ int main(int argc,char *argv[]) setlocale(LC_TIME,""); #endif -#if defined(ENABLE_NLS) && defined(HAVE_LOCALE_H) && defined(HAVE_LC_MESSAGES) - setlocale (LC_MESSAGES, ""); +#if defined(ENABLE_NLS) && defined(HAVE_LOCALE_H) + setlocale (LC_ALL, ""); bindtextdomain (PACKAGE_NAME, LOCALEDIR); textdomain (PACKAGE_NAME); #endif //ENABLE_NLS