search for: current_charset

Displaying 2 results from an estimated 2 matches for "current_charset".

2001 Sep 30
3
UTF-8 stuff
...mmy stub */ + return -1; /* Dummy stub */ } #else /* End win32. Rest is for real operating systems */ -#ifdef HAVE_ICONV -#include <iconv.h> -#include <errno.h> + +#ifdef HAVE_LANGINFO_CODESET +#include <langinfo.h> #endif -#include "charsetmap.h" +static char *current_charset = 0; /* means "US-ASCII" */ -#define BUFSIZE 256 +void convert_set_charset(const char *charset) +{ -/* - Converts the string FROM from the encoding specified in ENCODING - to UTF-8. The resulting string i pointed to by *TO. +#ifdef HAVE_LANGINFO_CODESET + if (!charset) + charset =...
2007 Jul 14
2
PATCH : Fix missing protoypes
...00 +++ src/share/utf8/utf8.c 2007-07-15 00:55:50 +0000 @@ -227,9 +227,7 @@ #include <langinfo.h> #endif -int iconvert(const char *fromcode, const char *tocode, - const char *from, size_t fromlen, - char **to, size_t *tolen); +#include "iconvert.h" static const char *current_charset(void) { --- src/test_libFLAC/bitwriter.c 2007-07-14 08:45:49 +0000 +++ src/test_libFLAC/bitwriter.c 2007-07-15 01:25:48 +0000 @@ -22,6 +22,7 @@ #include "FLAC/assert.h" #include "private/bitwriter.h" /* from the libFLAC private include area */ +#include "bitwriter.h&q...