From 26537124a4070f7869db67317b90e08916050c8f Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Thu, 11 Jun 2015 16:43:34 -0700 Subject: Renamed utf8proc_detab as utf8proc_check, removed detabbing function. Now it just replaces bad UTF-8 sequences and NULLs. This restores benchmarks to near their previous levels. --- src/blocks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/blocks.c') diff --git a/src/blocks.c b/src/blocks.c index 06f6dcb..08f2e63 100644 --- a/src/blocks.c +++ b/src/blocks.c @@ -619,7 +619,7 @@ S_process_line(cmark_parser *parser, const unsigned char *buffer, bufsize_t byte cmark_chunk input; bool maybe_lazy; - cmark_strbuf_put(parser->curline, buffer, bytes); + utf8proc_check(parser->curline, buffer, bytes); parser->offset = 0; parser->column = 0; parser->blank = false; -- cgit v1.2.3