Commit 1d093b7f authored by unknown's avatar unknown

charset2html.c:

  Don't print control characters


mysys/charset2html.c:
  Don't print control characters
parent 918519ea
......@@ -93,9 +93,21 @@ static void print_cs(CHARSET_INFO *cs)
ch[i].ctp & _MY_B ? "B" : "",
ch[i].ctp & _MY_X ? "X" : "");
printf("<TD>&#%d;",ch[i].uni);
printf("<TD>&#%d;",ch[i].low);
printf("<TD>&#%d;",ch[i].upp);
if ((ch[i].uni >= 0x80) && (ch[i].uni <= 0x9F))
{
/*
Control characters 0x0080..0x009F are dysplayed by some
browers as if they were letters. Don't print them to
avoid confusion.
*/
printf("<TD>ctrl<TD>ctrl<TD>ctrl");
}
else
{
printf("<TD>&#%d;",ch[i].uni);
printf("<TD>&#%d;",ch[i].low);
printf("<TD>&#%d;",ch[i].upp);
}
printf("</TR>\n");
srt=ch[i].srt;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment