that patch is not a solution a good solution is use m4 or another macro language (maybe cpp since apparently line-based macro languages are liked by mandoc freaks) to add an "include" to all pages in the www/* repository
also, a commit hook that ensures that newly added or modified pages meet a set of requirements On Wed, Jun 27, 2012 at 8:55 PM, ropers <rop...@gmail.com> wrote: > On 28 June 2012 01:17, Andres Perera <andre...@zoho.com> wrote: >>> http://www.openbsd.org/papers/bsdcan11-mandoc-openbsd.html >> >> >> that page is encoded iso 8859-1, doesn't state so anywhere, breaks >> with browsers configured to default to utf8 in the absence of encoding >> qualifiers > > $ telnet www.openbsd.org 80 > Trying 142.244.12.42... > Connected to www.openbsd.org. > Escape character is '^]'. > GET /papers/bsdcan11-mandoc-openbsd.html HTTP/1.1 > Host: www.openbsd.org > > HTTP/1.1 200 OK > Date: Wed, 27 Jun 2012 23:59:19 GMT > Server: Apache > Last-Modified: Sat, 18 Jun 2011 11:11:28 GMT > ETag: "65f60c9352dee7ec594696cdfb681e86316269ef" > Accept-Ranges: bytes > Content-Length: 32754 > Content-Type: text/html > > <HTML> > <BODY> > ... > > > Okay, this could transmit "Content-Type: text/html; > charset=iso-8859-1" but doesn't, but that's ok, we can do this on a > page-by-page basis with a META tag, which ought to be ignored by > browsers that don't understand it: > > $ diff -u 'bsdcan11-mandoc-openbsd.html' 'bsdcan11-mandoc-openbsd.html.new' > --- bsdcan11-mandoc-openbsd.html 2012-06-28 02:12:19.000000000 +0200 > +++ bsdcan11-mandoc-openbsd.html.new 2012-06-28 02:07:54.000000000 +0200 > @@ -1,4 +1,7 @@ > <HTML> > +<HEAD> > +<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> > +<HEAD/> > <BODY> > <H1><A HREF="http://www.bsdcan.org/2011/schedule/events/230.en.html">Mandoc > in OpenBSD</A></H1> > > Generally speaking, I find that on misc@ the words "you should make" > are taken far less seriously than even the most pitiful of diffs. > > regards, > ropers