Re: Beta: parse_errors must not split at :

* 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