diff src/utf8.cc @ 2104:3e7e5395f0bc

non-ASCII keybindings Alexander Voigt has kindly done some testing, and it seems that this makes bindings to most keys on a German keyboard possible -- except those that need AltGr don't work yet.
author corvid <corvid@lavabit.com>
date Thu, 23 Jun 2011 19:24:11 +0000
parents 719f4bae567c
children
line wrap: on
line diff
--- a/src/utf8.cc	Tue Jun 21 21:06:38 2011 -0400
+++ b/src/utf8.cc	Thu Jun 23 19:24:11 2011 +0000
@@ -100,3 +100,8 @@
            (unicode >= 0x20d0 && unicode <= 0x20ff) ||
            (unicode >= 0xfe20 && unicode <= 0xfe2f));
 }
+
+int a_Utf8_char_count(const char *str, int len)
+{
+   return fl_utf_nb_char((const uchar_t*)str, len);
+}