aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKalle Wallin <kaw@linux.se>2004-03-29 20:02:08 +0000
committerKalle Wallin <kaw@linux.se>2004-03-29 20:02:08 +0000
commit9c9802eaf316ca4f64965d53d55cd69edd287ef8 (patch)
treef339467b96cf1a463a090b717b35667fe6562d61
parent06b750db39674ccb9d15ff58e09bac4187f38a02 (diff)
downloadmpd-9c9802eaf316ca4f64965d53d55cd69edd287ef8.tar.gz
mpd-9c9802eaf316ca4f64965d53d55cd69edd287ef8.tar.xz
mpd-9c9802eaf316ca4f64965d53d55cd69edd287ef8.zip
Replaced g_utf8_strlen() with strlen()
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@545 09075e82-0dd4-0310-85a5-a0d7c8717e4f
-rw-r--r--support.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/support.c b/support.c
index bf6013277..b55fc0ac7 100644
--- a/support.c
+++ b/support.c
@@ -1,4 +1,5 @@
#include <ctype.h>
+#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <glib.h>
@@ -115,7 +116,8 @@ charset_init(void)
noconvert = g_get_charset(&charset);
#ifdef DEBUG
- g_printerr("charset: %s\n", charset);
+ g_printerr("charset: %s [%d]\n", charset, noconvert);
+ fflush(stderr);
#endif
return 0;
@@ -141,7 +143,7 @@ utf8_to_locale(char *utf8str)
wb = 0; /* bytes written */
error = NULL;
str=g_locale_from_utf8(utf8str,
- g_utf8_strlen(utf8str,-1),
+ strlen(utf8str),
&wb, &rb,
&error);
if( error )
@@ -168,7 +170,7 @@ locale_to_utf8(char *localestr)
wb = 0; /* bytes written */
error = NULL;
str=g_locale_to_utf8(localestr,
- -1,
+ strlen(localestr),
&wb, &rb,
&error);
if( error )