mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-29 11:41:22 +03:00
Changed all (?) occurences where validation macros (IS_xxx) had
* include/libxml/parserInternals.h HTMLparser.c HTMLtree.c SAX2.c catalog.c debugXML.c entities.c parser.c relaxng.c testSAX.c tree.c valid.c xmlschemas.c xmlschemastypes.c xpath.c: Changed all (?) occurences where validation macros (IS_xxx) had single-byte arguments to use IS_xxx_CH instead (e.g. IS_BLANK changed to IS_BLANK_CH). This gets rid of many warning messages on certain platforms, and also high- lights places in the library which may need to be enhanced for proper UTF8 handling.
This commit is contained in:
@ -52,7 +52,7 @@ xmlDebugDumpString(FILE * output, const xmlChar * str)
|
||||
for (i = 0; i < 40; i++)
|
||||
if (str[i] == 0)
|
||||
return;
|
||||
else if (IS_BLANK(str[i]))
|
||||
else if (IS_BLANK_CH(str[i]))
|
||||
fputc(' ', output);
|
||||
else if (str[i] >= 0x80)
|
||||
fprintf(output, "#%X", str[i]);
|
||||
|
Reference in New Issue
Block a user