From 9c9802eaf316ca4f64965d53d55cd69edd287ef8 Mon Sep 17 00:00:00 2001 From: Kalle Wallin Date: Mon, 29 Mar 2004 20:02:08 +0000 Subject: [PATCH] Replaced g_utf8_strlen() with strlen() git-svn-id: https://svn.musicpd.org/ncmpc/trunk@545 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- support.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/support.c b/support.c index bf60132..b55fc0a 100644 --- a/support.c +++ b/support.c @@ -1,4 +1,5 @@ #include +#include #include #include #include @@ -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 ) -- 2.30.2