* Convert a string between UTF-8 and the locale's charset.
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <stdlib.h>
#include <string.h>
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#ifdef HAVE_ICONV
#include <assert.h>
* 8-bit char, 16-bit short and 32-bit int.
#ifndef HAVE_ICONV /* should be ifdef USE_CHARSET_CONVERT */