From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from localhost (fantadrom.bsd.lv [local]); by fantadrom.bsd.lv (OpenSMTPD) with ESMTPA id d85604bc; for ; Fri, 20 Feb 2015 17:41:08 -0500 (EST) Date: Fri, 20 Feb 2015 17:41:08 -0500 (EST) Message-Id: <3637183424071023579.enqueue@fantadrom.bsd.lv> 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: Completely delete all carriage return characters from the input. X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- Completely delete all carriage return characters from the input. No change to messages about them (ignore them right before line feeds, report errors elsewhere). naddy@ found a manual in the wild containing lots of these (ysm(1)), and i can't imagine a situation where dropping them could be problematic. Modified Files: -------------- mdocml: read.c Revision Data ------------- Index: read.c =================================================================== RCS file: /home/cvs/mdocml/mdocml/read.c,v retrieving revision 1.126 retrieving revision 1.127 diff -Lread.c -Lread.c -u -p -r1.126 -r1.127 --- read.c +++ read.c @@ -399,7 +399,8 @@ mparse_buf_r(struct mparse *curp, struct MANDOCERR_CHAR_UNSUPP, curp, curp->line, pos, "0x%x", c); i++; - ln.buf[pos++] = '?'; + if (c != '\r') + ln.buf[pos++] = '?'; continue; } -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv