This allows to pass Latin-1, etc. Dead accents support still
lacking.
#include <stdbool.h>
#include "utils.h"
+#include "utf8wc.h"
#if !defined(USE_IPHONE) && !defined(HAVE_ANDROID) /* whole file */
c |= 0x80;
}
- fputc (c, d->pipe);
- fflush (d->pipe);
+ /* Encode to unicode UTF-8 and send */
+ {
+ char utf[8];
+ int sz;
+
+ sz = utf8_encode(c, utf, 7);
+ (void)fwrite(utf, sz, 1, d->pipe);
+ (void)fflush(d->pipe);
+ }
k->type = 0; /* don't interpret this event defaultly. */
# ifdef DEBUG