convert.c (libextractor-1.10) | : | convert.c (libextractor-1.11) | ||
---|---|---|---|---|
skipping to change at line 35 | skipping to change at line 35 | |||
/** | /** | |||
* Convert the len characters long character sequence | * Convert the len characters long character sequence | |||
* given in input that is in the given charset | * given in input that is in the given charset | |||
* to UTF-8. | * to UTF-8. | |||
* | * | |||
* @param input string to convert | * @param input string to convert | |||
* @param len number of bytes in input | * @param len number of bytes in input | |||
* @param charset input character set | * @param charset input character set | |||
* @return the converted string (0-terminated), NULL on error | * @return the converted string (0-terminated), NULL on error | |||
* @return the converted string (0-terminated), | * @return the converted string (0-terminated), | |||
* if conversion fails, a copy of the orignal | * if conversion fails, a copy of the original | |||
* string is returned. | * string is returned. | |||
*/ | */ | |||
char * | char * | |||
EXTRACTOR_common_convert_to_utf8 (const char *input, | EXTRACTOR_common_convert_to_utf8 (const char *input, | |||
size_t len, | size_t len, | |||
const char *charset) | const char *charset) | |||
{ | { | |||
#if HAVE_ICONV | #if HAVE_ICONV | |||
size_t tmpSize; | size_t tmpSize; | |||
size_t finSize; | size_t finSize; | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |