--- psiconv/trunk/lib/psiconv/common.h 2000/12/25 22:25:33 79 +++ psiconv/trunk/lib/psiconv/common.h 2004/02/04 12:19:09 196 @@ -1,6 +1,6 @@ /* common.h - Part of psiconv, a PSION 5 file formats converter - Copyright (c) 1999, 2000 Frodo Looijaard + Copyright (c) 1999, 2000-2004 Frodo Looijaard This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -24,7 +24,8 @@ #define PSICONV_COMMON_H #include -#include +#include +#include #ifdef __cplusplus extern "C" { @@ -34,10 +35,12 @@ * misc.c * *************** */ -/* This function returns a copy of a string, that contains no ASCII codes - that are not printable. You should free this string yourself when you are +/* This function returns a copy of a Unicode string, converted to plain ASCII. + Anything codepage dependent (> 128) is sanitized away. + You should free this string yourself when you are done with it. Returns NULL if there is not enough memory left. */ -extern char *psiconv_make_printable(const char *s); +extern char *psiconv_make_printable(const psiconv_config config, + const psiconv_string_t s); /* **************