mirror of
https://github.com/MariaDB/server.git
synced 2025-01-15 19:42:28 +01:00
charset2html.c:
Don't print control characters mysys/charset2html.c: Don't print control characters
This commit is contained in:
parent
918519ea1e
commit
1d093b7f19
1 changed files with 15 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue