aboutsummaryrefslogtreecommitdiffstats
path: root/src/utf8.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/utf8.c')
-rw-r--r--src/utf8.c8
1 files changed, 8 insertions, 0 deletions
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 */