From c7fad16a08152b074e4631aede388588668b9bc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20=27Flameeyes=27=20Petten=C3=B2?= Date: Sat, 10 Jun 2006 00:21:51 +0000 Subject: Don't trust internal gettext macros, they are unreliable and change between versions. Check for nl_langinfo() explicitely and use that instead. CVS patchset: 8023 CVS date: 2006/06/10 00:21:51 --- src/xine-utils/utils.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/xine-utils') diff --git a/src/xine-utils/utils.c b/src/xine-utils/utils.c index ee23cae8d..477789e3b 100644 --- a/src/xine-utils/utils.c +++ b/src/xine-utils/utils.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: utils.c,v 1.43 2006/02/05 16:15:12 miguelfreitas Exp $ + * $Id: utils.c,v 1.44 2006/06/10 00:21:51 dgp85 Exp $ * */ #define _POSIX_PTHREAD_SEMANTICS 1 /* for 5-arg getpwuid_r on solaris */ @@ -50,7 +50,7 @@ #include #endif -#ifdef HAVE_LANGINFO_CODESET +#ifdef HAVE_NL_LANGINFO #include #endif @@ -531,7 +531,7 @@ static char *_get_lang(void) { char *xine_get_system_encoding(void) { char *codeset = NULL; -#ifdef HAVE_LANGINFO_CODESET +#ifdef HAVE_NL_LANGINFO codeset = nl_langinfo(CODESET); #endif /* -- cgit v1.2.3