search for: from_p

Displaying 1 result from an estimated 1 matches for "from_p".

Did you mean: from_
2001 Sep 30
3
UTF-8 stuff
...&& *charset) + current_charset = strdup(charset); +} + +static int convert_buffer(const char *fromcode, const char *tocode, + const char *from, size_t fromlen, + char **to, size_t *tolen) { + int ret = -1; + #ifdef HAVE_ICONV - static unsigned char buffer[BUFSIZE]; - char *from_p, *to_p; - size_t from_left, to_left; - iconv_t cd; + ret = iconvert(fromcode, tocode, from, fromlen, to, tolen); + if (ret != -1) + return ret; #endif - if (!strcasecmp(encoding, "UTF-8")) { - /* ideally some checking of the given string should be done */ - *to = malloc(strle...