File texterize-fixes.patch of Package texterize
--- txlib/html.c.orig 2009-10-05 12:32:08.000000000 +0200
+++ txlib/html.c 2009-10-05 12:32:45.000000000 +0200
@@ -303,7 +303,7 @@
charset = guessed_charset;
}
- if (guessed_charset == US_ASCII || guessed_charset == ISO_8859) {
+ if (strcmp(guessed_charset, US_ASCII) == 0 || strcmp(guessed_charset, ISO_8859) == 0) {
// CP1252 is a superset of both so don't worry
//
guessed_charset = CP1252;
--- txlib/rtf.c.orig 2009-10-05 12:32:50.000000000 +0200
+++ txlib/rtf.c 2009-10-05 12:33:08.000000000 +0200
@@ -613,7 +613,7 @@
}
}
- if (charset == SYMBOL_CHARSET) {
+ if (strcmp(charset, SYMBOL_CHARSET) == 0) {
// special handling is needed
//
wchar_t translation = 0;
--- txlib/amipro.c.orig 2009-10-05 12:31:02.000000000 +0200
+++ txlib/amipro.c 2009-10-05 12:32:00.000000000 +0200
@@ -108,7 +108,7 @@
textbuf[text_idx++] = line[idx];
}
if (text_idx == BUFLEN) {
- textbuf[text_idx] = '\0';
+ textbuf[text_idx - 1] = '\0';
(*cb_text)(textbuf, priv, 0);
text_idx = 0;
}