source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mdocml: Some base system pages, for example perl(1), contain non-ASCII
@ 2016-07-31 23:37 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2016-07-31 23:37 UTC (permalink / raw)
  To: source

Log Message:
-----------
Some base system pages, for example perl(1), contain non-ASCII 
characters in their source code, so switch on charset autodetection
in the same way as in man(1) itself.  
Issue reported by Pavan Maddamsetti at gmail dot com on bugs@.

Modified Files:
--------------
    mdocml:
        cgi.c

Revision Data
-------------
Index: cgi.c
===================================================================
RCS file: /home/cvs/mdocml/mdocml/cgi.c,v
retrieving revision 1.135
retrieving revision 1.136
diff -Lcgi.c -Lcgi.c -u -p -r1.135 -r1.136
--- cgi.c
+++ cgi.c
@@ -800,7 +800,8 @@ resp_format(const struct req *req, const
 	}
 
 	mchars_alloc();
-	mp = mparse_alloc(MPARSE_SO, MANDOCLEVEL_BADARG, NULL, req->q.manpath);
+	mp = mparse_alloc(MPARSE_SO | MPARSE_UTF8 | MPARSE_LATIN1,
+	    MANDOCLEVEL_BADARG, NULL, req->q.manpath);
 	mparse_readfd(mp, fd, file);
 	close(fd);
 
--
 To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-07-31 23:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-31 23:37 mdocml: Some base system pages, for example perl(1), contain non-ASCII schwarze

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).