summaryrefslogtreecommitdiff
path: root/src/shared/utf8.c
diff options
context:
space:
mode:
authorShawn Landden <shawn@churchofgit.com>2013-09-20 18:37:33 -0700
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-10-13 17:56:54 -0400
commitf405e86de361ec305dc2b8634efeaa23dc144053 (patch)
treeb3fe37e4a143a5d2dee14eb34d96f96cb03b84fc /src/shared/utf8.c
parent14a9283eb38a93ec384c322ccbe06352c86a25f8 (diff)
util, utf8: make ellipsize take multi-byte characters into account
rename old versions to ascii_* Do not take into account zerowidth characters, but do consider double-wide characters. Import needed utf8 helper code from glib. v3: rebase ontop of utf8 restructuring work [zj: tweak the algorithm a bit, move new code to separate file]
Diffstat (limited to 'src/shared/utf8.c')
-rw-r--r--src/shared/utf8.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/utf8.c b/src/shared/utf8.c
index 31120af046..98b68ef657 100644
--- a/src/shared/utf8.c
+++ b/src/shared/utf8.c
@@ -98,7 +98,7 @@ static int utf8_encoded_expected_len(const char *str) {
}
/* decode one unicode char */
-static int utf8_encoded_to_unichar(const char *str) {
+int utf8_encoded_to_unichar(const char *str) {
int unichar;
int len;
int i;