summaryrefslogtreecommitdiff
path: root/src/xine-engine/xine.c
diff options
context:
space:
mode:
authorFrantišek Dvořák <valtri@users.sourceforge.net>2003-10-08 05:33:28 +0000
committerFrantišek Dvořák <valtri@users.sourceforge.net>2003-10-08 05:33:28 +0000
commite7f00e3515fdd34fd9d8252c3390a8e6b9ec0253 (patch)
treea67c9ec79e5d69ff3934bb4aacae34581677e5ff /src/xine-engine/xine.c
parentaf7053945d019b6dfa41967709dee00ee21b79b7 (diff)
downloadxine-lib-e7f00e3515fdd34fd9d8252c3390a8e6b9ec0253.tar.gz
xine-lib-e7f00e3515fdd34fd9d8252c3390a8e6b9ec0253.tar.bz2
encoding of URL with multibyte characters in MMS for using xine in China
CVS patchset: 5473 CVS date: 2003/10/08 05:33:28
Diffstat (limited to 'src/xine-engine/xine.c')
-rw-r--r--src/xine-engine/xine.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/xine-engine/xine.c b/src/xine-engine/xine.c
index fd595abbd..235447599 100644
--- a/src/xine-engine/xine.c
+++ b/src/xine-engine/xine.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: xine.c,v 1.256 2003/10/04 15:19:23 siggi Exp $
+ * $Id: xine.c,v 1.257 2003/10/08 05:33:28 valtri Exp $
*/
/*
@@ -42,6 +42,10 @@
#include <machine/endian.h>
#endif
+#ifdef HAVE_SETLOCALE
+#include <locale.h>
+#endif
+
/********** logging **********/
#define LOG_MODULE "xine"
#define LOG_VERBOSE
@@ -1220,6 +1224,11 @@ void xine_init (xine_t *this) {
* content detection strategy
*/
+#ifdef HAVE_SETLOCALE
+ if (!setlocale(LC_CTYPE, ""))
+ printf("xine: locale not supported by C library\n");
+#endif
+
this->demux_strategy = this->config->register_enum (this->config,
"misc.demux_strategy",
0,