From f405e86de361ec305dc2b8634efeaa23dc144053 Mon Sep 17 00:00:00 2001 From: Shawn Landden Date: Fri, 20 Sep 2013 18:37:33 -0700 Subject: 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] --- TODO | 4 ---- 1 file changed, 4 deletions(-) (limited to 'TODO') diff --git a/TODO b/TODO index 4a498b9099..955241a90c 100644 --- a/TODO +++ b/TODO @@ -17,10 +17,6 @@ Bugfixes: * properly handle .mount unit state tracking when two mount points are stacked one on top of another on the exact same mount point. -* ellipsize_mem must take into account multi-byte unicode characters, and - - make the resulting line the requested number of *characters*, not *bytes*, - - avoid truncuating multi-byte sequences in the middle. - * When we detect invalid UTF-8, we cant't use it in an error message: log...("Path is not UTF-8 clean, ignoring assignment: %s", rvalue); -- cgit v1.2.3-54-g00ecf