diff options
author | Kalle Wallin <kaw@linux.se> | 2004-03-29 20:02:08 +0000 |
---|---|---|
committer | Kalle Wallin <kaw@linux.se> | 2004-03-29 20:02:08 +0000 |
commit | 9c9802eaf316ca4f64965d53d55cd69edd287ef8 (patch) | |
tree | f339467b96cf1a463a090b717b35667fe6562d61 /support.c | |
parent | 06b750db39674ccb9d15ff58e09bac4187f38a02 (diff) | |
download | mpd-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
Diffstat (limited to 'support.c')
-rw-r--r-- | support.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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 ) |