=================================================================== RCS file: /cvs/mandoc/mandoc_msg.c,v retrieving revision 1.2 retrieving revision 1.5 diff -u -p -r1.2 -r1.5 --- mandoc/mandoc_msg.c 2018/12/14 05:18:02 1.2 +++ mandoc/mandoc_msg.c 2019/01/10 06:29:00 1.5 @@ -1,4 +1,4 @@ -/* $OpenBSD: mandoc_msg.c,v 1.2 2018/12/14 05:18:02 schwarze Exp $ */ +/* $Id: mandoc_msg.c,v 1.5 2019/01/10 06:29:00 schwarze Exp $ */ /* * Copyright (c) 2010, 2011 Kristaps Dzonsons * Copyright (c) 2014,2015,2016,2017,2018 Ingo Schwarze @@ -167,6 +167,7 @@ static const char *const type_message[MANDOCERR_MAX] = "tab in filled text", "new sentence, new line", "invalid escape sequence", + "undefined escape, printing literally", "undefined string, using \"\"", /* related to tables */ @@ -228,6 +229,7 @@ static const char *const type_message[MANDOCERR_MAX] = "unsupported feature", "input too large", "unsupported control character", + "unsupported escape sequence", "unsupported roff request", "nested .while loops", "end of scope with open .while loop", @@ -238,7 +240,7 @@ static const char *const type_message[MANDOCERR_MAX] = "ignoring macro in table", }; -static FILE *fileptr = stderr; +static FILE *fileptr = NULL; static const char *filename = NULL; static enum mandocerr min_type = MANDOCERR_MAX; static enum mandoclevel rc = MANDOCLEVEL_OK;