Bug#820119: restores original characters instead of taking care of every time numeric references coming up

victory <[email protected]>
Newsgroups gmane.linux.debian.devel.www
Message-ID <20170122014910.58d65ab1ecac306ad698eff6__22762.8111410469$1496093613$gmane$org@gmail.com>
On Sat, 14 Jan 2017 13:55:16 +0100
Laura Arjona Reina wrote:

> Victory is right

no, i misinterpreted validate as tidy :p

what the patch does:
  if both of
   (charset is "utf-8")
  and
    ([the last 56 chars of a error] is
      "is not a character number in the document character set\n")
  are satisfied,
  then the current loop is terminated
    (push(@errors, $_) will not be processed in this case)
  and continue next ones
patch for git:///debwww/cron: scripts/validate below:

@@ -392,10 +392,13 @@ foreach $file (@files) {
         if ($#error < 5) {
 
             next;
 
         } elsif ($error[4] eq 'E' || $error[4] eq 'X') {
+	    next if($charset eq "utf-8" &&
+		    substr($error[5],-56) eq
+		    "is not a character number in the document character set\n");
 
             push(@errors, $_);
 
             # If the DOCTYPE is bad, bail out
             last if ($error[5] eq " unrecognized {{DOCTYPE}}; unable to check document\n");
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.