From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from krisdoz.my.domain (schwarze@localhost [127.0.0.1]) by krisdoz.my.domain (8.14.5/8.14.5) with ESMTP id rAALY6Sc000300 for ; Sun, 10 Nov 2013 16:34:06 -0500 (EST) Received: (from schwarze@localhost) by krisdoz.my.domain (8.14.5/8.14.3/Submit) id rAALY4c9017858; Sun, 10 Nov 2013 16:34:04 -0500 (EST) Date: Sun, 10 Nov 2013 16:34:04 -0500 (EST) Message-Id: <201311102134.rAALY4c9017858@krisdoz.my.domain> X-Mailinglist: mdocml-source Reply-To: source@mdocml.bsd.lv MIME-Version: 1.0 From: schwarze@mdocml.bsd.lv To: source@mdocml.bsd.lv Subject: mdocml: Support the alternative syntax \C'uXXXX' for Unicode characters. X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- Support the alternative syntax \C'uXXXX' for Unicode characters. It is already documented in the Heirloom troff manual, and groff handles it as well. Bug reported by Bjarni Ingi Gislason on . Well, admittedly, that bug was reported against groff, but mandoc was even more broken than groff with respect to this syntax... Modified Files: -------------- mdocml: mandoc.c Revision Data ------------- Index: mandoc.c =================================================================== RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/mandoc.c,v retrieving revision 1.69 retrieving revision 1.70 diff -Lmandoc.c -Lmandoc.c -u -p -r1.69 -r1.70 --- mandoc.c +++ mandoc.c @@ -93,8 +93,11 @@ mandoc_escape(const char const **end, co case ('C'): if ('\'' != **start) return(ESCAPE_ERROR); - gly = ESCAPE_SPECIAL; *start = ++*end; + if ('u' == (*start)[0] && '\'' != (*start)[1]) + gly = ESCAPE_UNICODE; + else + gly = ESCAPE_SPECIAL; term = '\''; break; -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv