diff options
author | Brendan Long <self@brendanlong.com> | 2018-08-25 22:27:37 +0300 |
---|---|---|
committer | Brendan Long <self@brendanlong.com> | 2018-08-25 23:39:36 +0300 |
commit | 0b92ffe203428920daad1de9f6cd7ea179142f7c (patch) | |
tree | ab73e31803be170e3cdbf1ff01da3189d50d9a4b /libraries | |
parent | 980f36c318cc8a5b084a932d91b4e3b17549fab0 (diff) |
libvilistextum: Use iswalpha for wchar
Diffstat (limited to 'libraries')
-rw-r--r-- | libraries/libVilistextum/html_tag.c | 3 | ||||
-rw-r--r-- | libraries/libVilistextum/inputs/test6 | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/libraries/libVilistextum/html_tag.c b/libraries/libVilistextum/html_tag.c index 7b8b878e..ff1c6699 100644 --- a/libraries/libVilistextum/html_tag.c +++ b/libraries/libVilistextum/html_tag.c @@ -20,6 +20,7 @@ #include <ctype.h> #include <stdio.h> #include <string.h> +#include <wctype.h> #include "html.h" #include "text.h" @@ -40,7 +41,7 @@ void html_tag() /* '!' -> CDATA section or comment */ /* '/' -> end tag */ /* '?' -> XML processing instruction */ - if ((!isalpha(ch)) && (ch!='/') && (ch!='!') && (ch!='?')) + if ((!iswalpha(ch)) && (ch!='/') && (ch!='!') && (ch!='?')) { wort_plus_ch('<'); putback_char(ch); diff --git a/libraries/libVilistextum/inputs/test6 b/libraries/libVilistextum/inputs/test6 new file mode 100644 index 00000000..bd0257ae --- /dev/null +++ b/libraries/libVilistextum/inputs/test6 @@ -0,0 +1 @@ +<ý½¿½½½
\ No newline at end of file |