From 789f759f4cea382053851669bb7076d9a990a2cd Mon Sep 17 00:00:00 2001 From: james <> Date: Tue, 27 Jul 2010 14:49:35 +0000 Subject: add support for byte logging --- src/utf8.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/utf8.c') diff --git a/src/utf8.c b/src/utf8.c index f909666..d4c9248 100644 --- a/src/utf8.c +++ b/src/utf8.c @@ -10,6 +10,9 @@ static char rcsid[] = "$Id$"; /* * $Log$ + * Revision 1.16 2010/07/27 14:49:35 james + * add support for byte logging + * * Revision 1.15 2008/03/07 13:16:02 james * *** empty log message *** * @@ -108,6 +111,11 @@ utf8_parse (Context * c, uint32_t ch) return err; } + if (c->l && c->byte_logging) { + uint8_t ch8=(uint8_t) ch; + c->l->log_bytes(c->l,&ch8,1); + } + if (!u->in_utf8) { /* FIXME: for the moment we bodge utf8 support - need to do */ /* L->R and R->L and double width characters */ -- cgit v1.2.3