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/rules.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/cmd/rc/rules.mk') diff --git a/sys/cmd/rc/rules.mk b/sys/cmd/rc/rules.mk index 991fb2e..ceec50b 100644 --- a/sys/cmd/rc/rules.mk +++ b/sys/cmd/rc/rules.mk @@ -25,7 +25,7 @@ $(d)/parse.h $(d)/parse.c: $(d)/syntax.y yacc --header=$(