From 95199c74b5d14cb6e151002cf9825d9f2d9b6548 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20=27Flameeyes=27=20Petten=C3=B2?= Date: Fri, 21 Jul 2006 04:47:17 +0000 Subject: When trying to get the langinfo code, first of all, set the locale, or you'll always get ANSI/ASCII. CVS patchset: 8138 CVS date: 2006/07/21 04:47:17 --- src/xine-utils/utils.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/xine-utils/utils.c b/src/xine-utils/utils.c index cb072e99a..fa0c11dbe 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.45 2006/06/23 18:24:22 dsalt Exp $ + * $Id: utils.c,v 1.46 2006/07/21 04:47:17 dgp85 Exp $ * */ #define _POSIX_PTHREAD_SEMANTICS 1 /* for 5-arg getpwuid_r on solaris */ @@ -532,6 +532,7 @@ char *xine_get_system_encoding(void) { char *codeset = NULL; #ifdef HAVE_NL_LANGINFO + setlocale(LC_ALL, ""); codeset = nl_langinfo(CODESET); #endif /* -- cgit v1.2.3