summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@ximian.com>2002-05-23 19:08:44 +0000
committerFederico Mena Quintero <federico@src.gnome.org>2002-05-23 19:08:44 +0000
commitc2341ac0ef3e135bdf6540c2689c1b33abe27420 (patch)
tree080be6e7d3c853c4a0eab8d79b5b04f262b90a0c
parent3c3066e08fb5887bb06569c5cb4185ac5752503c (diff)
downloadyelp-LIBGNOME_1_117_2.tar.gz
Do not convert characters with the most significant bit set. HopefullyLIBGNOME_2_0_1LIBGNOME_2_0_0LIBGNOME_1_117_2
2002-05-23 Federico Mena Quintero <federico@ximian.com> * help-converters/man/gnome-man2html.c (scan_troff): Do not convert characters with the most significant bit set. Hopefully fixes #79071.
-rw-r--r--src/man2html/yelp-man2html.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/man2html/yelp-man2html.c b/src/man2html/yelp-man2html.c
index fce73381..876614a3 100644
--- a/src/man2html/yelp-man2html.c
+++ b/src/man2html/yelp-man2html.c
@@ -127,6 +127,7 @@
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
+#include <ctype.h>
#include <sys/stat.h>
#include <dirent.h>
#include <sys/types.h>
@@ -3607,12 +3608,22 @@ static char
} else if (*h>31 && *h<127)
intbuff[ibp++]=*h;
else if (((unsigned char)(*h))>127) {
+#if 0
intbuff[ibp++]='&';
intbuff[ibp++]='#';
intbuff[ibp++]='0'+((unsigned char)(*h))/100;
intbuff[ibp++]='0'+(((unsigned char)(*h))%100)/10;
intbuff[ibp++]='0'+((unsigned char)(*h))%10;
intbuff[ibp++]=';';
+#endif
+ /* Do not convert this, as it may be
+ * part of a multibyte sequence. The
+ * HTML viewer should hopefully know
+ * what to do with the encoding. Hmm,
+ * we could probably merge this case
+ * with the one above.
+ */
+ intbuff[ibp++] = (guchar) *h;
}
curpos++;
break;