summaryrefslogtreecommitdiff
path: root/COPYING
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@googlemail.com>2012-12-10 15:31:47 +0100
committerDavid Herrmann <dh.herrmann@googlemail.com>2012-12-10 15:36:04 +0100
commitbc40e1ae53a890ea54fb22e38ed4c35d3f45b9f5 (patch)
treec2b8b65056bc2dde3f12ff51570e5e3f97f533b3 /COPYING
parente3c9bcfb154701eb2a38202ed17d8afe064256aa (diff)
tsm: unicode: add wcwidth() implementation
wcwidth() is a POSIX function that returns the number of cells that a wide-character occupies. The glibc function cannot be used as it depends on the locale and we need _always_ UTF8 no matter what the locale is. This implementation is provided by Markus Kuhn and is equivalent to xterm's behavior. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
Diffstat (limited to 'COPYING')
-rw-r--r--COPYING10
1 files changed, 10 insertions, 0 deletions
diff --git a/COPYING b/COPYING
index 7679270..7571c36 100644
--- a/COPYING
+++ b/COPYING
@@ -55,6 +55,16 @@ later as published by the FSF. It applies to external/dbus-loop.*
Copyright 2011 Lennart Poettering
+The wcwidth() implementation in ./external/wcwidth.c is from:
+
+ Markus Kuhn -- 2007-05-26 (Unicode 5.0)
+
+ Permission to use, copy, modify, and distribute this software
+ for any purpose and without fee is hereby granted. The author
+ disclaims all warranties with regard to this software.
+
+ Latest version: http://www.cl.cam.ac.uk/~mgk25/ucs/wcwidth.c
+
The vt.c source file is based on the VT handling of the wayland demo
compositor: