summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2006-07-21 04:47:17 +0000
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2006-07-21 04:47:17 +0000
commit95199c74b5d14cb6e151002cf9825d9f2d9b6548 (patch)
tree25ef9fbf1ad64c755b3b6ce56a8315a18bdf0328 /src
parentf00dbe4938456b04c9589eacfd32da80f85a8226 (diff)
downloadxine-lib-95199c74b5d14cb6e151002cf9825d9f2d9b6548.tar.gz
xine-lib-95199c74b5d14cb6e151002cf9825d9f2d9b6548.tar.bz2
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
Diffstat (limited to 'src')
-rw-r--r--src/xine-utils/utils.c3
1 files changed, 2 insertions, 1 deletions
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
/*