[prev in list] [next in list] [prev in thread] [next in thread]
List: mandoc-source
Subject: mdocml: Some base system pages, for example perl(1), contain non-ASCII
From: schwarze () mdocml ! bsd ! lv
Date: 2016-07-31 23:37:53
Message-ID: 15290041332782737444.enqueue () fantadrom ! bsd ! lv
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic