c:\utils\git\bin\git.exe diff error.c diff --git a/error.c b/error.c index 3e41e173..ae3b38ff 100644 --- a/error.c +++ b/error.c @@ -247,6 +247,7 @@ xmlReportError(xmlErrorPtr err, xmlParserCtxtPtr ctxt, const char *str, { char *file = NULL; int line = 0; + int col = 0; int code = -1; int domain; const xmlChar *name = NULL; @@ -264,6 +265,7 @@ xmlReportError(xmlErrorPtr err, xmlParserCtxtPtr ctxt, const char *str, } file = err->file; line = err->line; + col = err->int2; code = err->code; domain = err->domain; level = err->level; @@ -287,13 +289,13 @@ xmlReportError(xmlErrorPtr err, xmlParserCtxtPtr ctxt, const char *str, } if (input != NULL) { if (input->filename) - channel(data, "%s:%d: ", input->filename, input->line); + channel(data, "%s:%d:%d: ", input->filename, input->line, input->col); else if ((line != 0) && (domain == XML_FROM_PARSER)) channel(data, "Entity: line %d: ", input->line); } } else { if (file != NULL) - channel(data, "%s:%d: ", file, line); + channel(data, "%s:%d:%d: ", file, line,col); else if ((line != 0) && ((domain == XML_FROM_PARSER) || (domain == XML_FROM_SCHEMASV)|| (domain == XML_FROM_SCHEMASP)||(domain == XML_FROM_DTD) ||