summaryrefslogtreecommitdiff
path: root/src/xine-utils/utils.c
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2006-06-10 00:21:51 +0000
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2006-06-10 00:21:51 +0000
commitc7fad16a08152b074e4631aede388588668b9bc5 (patch)
tree10c357e11740904204cbf0e5115d50945a948cab /src/xine-utils/utils.c
parent74e4835513b227b33e8ed6f66f312411cef7b466 (diff)
downloadxine-lib-c7fad16a08152b074e4631aede388588668b9bc5.tar.gz
xine-lib-c7fad16a08152b074e4631aede388588668b9bc5.tar.bz2
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
Diffstat (limited to 'src/xine-utils/utils.c')
-rw-r--r--src/xine-utils/utils.c6
1 files changed, 3 insertions, 3 deletions
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 <ucontext.h>
#endif
-#ifdef HAVE_LANGINFO_CODESET
+#ifdef HAVE_NL_LANGINFO
#include <langinfo.h>
#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
/*