1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-29 11:41:22 +03:00

bug fixes, bugfixes, bugfixes ...

- parser.c: Fixed Bug#21552: libxml fails to decode &
- uri.c testUri.c patches, by Marc Sanfacon (1 left)
- parser.c HTMLparser.c: HTML/encoding push problems reportedi by Wayne Davison
Daniel
This commit is contained in:
Daniel Veillard
2000-08-22 23:36:12 +00:00
parent af7fc34f22
commit 52402ce7eb
5 changed files with 51 additions and 13 deletions

View File

@ -27,6 +27,10 @@ int main(int argc, char **argv) {
const char *base = NULL;
xmlChar *composite;
if (argv[arg] == NULL) {
printf("Usage: %s [-base URI] URI ...\n", argv[0]);
exit(0);
}
if ((!strcmp(argv[arg], "-base")) || (!strcmp(argv[arg], "--base"))) {
arg++;
base = argv[arg];
@ -78,8 +82,7 @@ int main(int argc, char **argv) {
}
} else {
composite = xmlBuildURI((xmlChar *)argv[arg], (xmlChar *) base);
if (base == NULL) {
} else {
if (composite != NULL) {
printf("%s\n", composite);
xmlFree(composite);
}