diff options
author | John MacFarlane <jgm@berkeley.edu> | 2015-06-11 16:43:34 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2015-06-16 17:48:05 -0700 |
commit | 26537124a4070f7869db67317b90e08916050c8f (patch) | |
tree | 376f5f2f78e01fe2c7b09c9f7cfe471fbeeac60e /src/blocks.c | |
parent | 7f491b0bdf8e206458d284938efa8a0890c9d352 (diff) |
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.
Diffstat (limited to 'src/blocks.c')
-rw-r--r-- | src/blocks.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |