summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 06b750d)
raw | patch | inline | side by side (parent: 06b750d)
author | Kalle Wallin <kaw@linux.se> | |
Mon, 29 Mar 2004 20:02:08 +0000 (20:02 +0000) | ||
committer | Kalle Wallin <kaw@linux.se> | |
Mon, 29 Mar 2004 20:02:08 +0000 (20:02 +0000) |
support.c | patch | blob | history |
diff --git a/support.c b/support.c
index bf60132775aebd3829ba87f7c5fa002f621c6c74..b55fc0ac79af3b2bf1a27e8e15196deeac584bf7 100644 (file)
--- a/support.c
+++ b/support.c
#include <ctype.h>
+#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <glib.h>
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;
wb = 0; /* bytes written */
error = NULL;
str=g_locale_from_utf8(utf8str,
- g_utf8_strlen(utf8str,-1),
+ strlen(utf8str),
&wb, &rb,
&error);
if( error )
wb = 0; /* bytes written */
error = NULL;
str=g_locale_to_utf8(localestr,
- -1,
+ strlen(localestr),
&wb, &rb,
&error);
if( error )