X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/579e24cf01bba12f654342bd89e67dfba1f96569..a303f40898d21cb0d5552a2252710ddc741a1cec:/mandoc.c diff --git a/mandoc.c b/mandoc.c index 963b5b49..2936ef93 100644 --- a/mandoc.c +++ b/mandoc.c @@ -1,4 +1,4 @@ -/* $Id: mandoc.c,v 1.69 2013/10/05 20:30:05 schwarze Exp $ */ +/* $Id: mandoc.c,v 1.70 2013/11/10 21:34:04 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2011, 2012, 2013 Ingo Schwarze @@ -93,8 +93,11 @@ mandoc_escape(const char const **end, const char const **start, int *sz) 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;