diff options
author | james <> | 2010-07-27 14:49:35 +0000 |
---|---|---|
committer | james <> | 2010-07-27 14:49:35 +0000 |
commit | 789f759f4cea382053851669bb7076d9a990a2cd (patch) | |
tree | 26776194e6b4ce257e526876a2a0518844a9a258 /src/utf8.c | |
parent | 6faf91bb7c43b69f7132f76bc520e60e8b8677c6 (diff) | |
download | sympathy-789f759f4cea382053851669bb7076d9a990a2cd.tar.gz sympathy-789f759f4cea382053851669bb7076d9a990a2cd.tar.bz2 sympathy-789f759f4cea382053851669bb7076d9a990a2cd.zip |
add support for byte logging
Diffstat (limited to 'src/utf8.c')
-rw-r--r-- | src/utf8.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 */ |