summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mandoc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/mandoc.c b/mandoc.c
index fab0c440..4cba828d 100644
--- a/mandoc.c
+++ b/mandoc.c
@@ -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;