W3C home > Mailing lists > Public > www-validator@w3.org > October 2002

Re: Beta: parse_errors must not split at :

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Sat, 26 Oct 2002 20:58:03 +0200
To: Terje Bless <link@pobox.com>
Cc: W3C Validator <www-validator@w3.org>
Message-ID: <3df5e4af.105794113@smtp.bjoern.hoehrmann.de>

* Terje Bless wrote:
>Bjoern Hoehrmann <derhoermi@gmx.net> wrote:
>>parse_errors() is unable to cope with Win32 paths since it splits the
>>(o)nsgmls output at /:/ which is said to fail if the (o)nsgmls path
>>contains a : like "c:\...".
>Logged as Bug #45, but is unlikely to be fixed for this release.
>There simply isn't any real solution to this that does not involve hacking
>hairy C++ code inside OpenSP, or replacing the whole parser (IOW, big jobs
>both of them).

Well, I solved this by adding a line

  sub parse_errors ($$) {
    for (<$fh>) {
      s/^\Q$CFG->{'SGML Parser'}\E//;
    # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

>Given that you can use UNC paths on `doze, I'm inclined to not worry overly
>much about this. If this turns out to be a problem, we could make two
>versions of the Validator available for download; one UN*X version and one
>W32 version (the latter dealing with this issue).

The above is obviously too simle...
Received on Saturday, 26 October 2002 14:57:52 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:35 UTC