From b12609cd69ff39f8a221b12230becadfe3e1fc57 Mon Sep 17 00:00:00 2001 From: Nicholas Noll Date: Fri, 29 Oct 2021 08:44:47 -0700 Subject: Prototype of unicode readline support The readline functionality operated on the assumption that 1 byte = 1 character. This is obviously wrong if you input a non-ascii character. This commit temporarily removes a lot of functionality but parses input bytes in a unicode-aware manner. The outstanding problem now is 1 unicode rune != 1 column. There are double wide characters, as well as zero width runes, that further break our assumption that 1 rune = 1 character = 1 column. This is the next iteration. --- sys/cmd/rc/rc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/cmd/rc/rc.h') diff --git a/sys/cmd/rc/rc.h b/sys/cmd/rc/rc.h index eaf668a..32fb639 100644 --- a/sys/cmd/rc/rc.h +++ b/sys/cmd/rc/rc.h @@ -1,7 +1,7 @@ -#pragma once #include #include +#include // ----------------------------------------------------------------------- // types -- cgit v1.2.1