aboutsummaryrefslogtreecommitdiff
path: root/sys/cmd/rc/rc.h
diff options
context:
space:
mode:
authorNicholas Noll <nbnoll@eml.cc>2021-10-29 08:44:47 -0700
committerNicholas Noll <nbnoll@eml.cc>2021-10-29 08:44:47 -0700
commitb12609cd69ff39f8a221b12230becadfe3e1fc57 (patch)
treea6d4eeaf4cdeab53d2f924556bf24a8ce4ff8214 /sys/cmd/rc/rc.h
parent079d5d6a214f169fa8b73f2d6f6f741810dbe9fe (diff)
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.
Diffstat (limited to 'sys/cmd/rc/rc.h')
-rw-r--r--sys/cmd/rc/rc.h2
1 files changed, 1 insertions, 1 deletions
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 <u.h>
#include <base.h>
+#include <libunicode.h>
// -----------------------------------------------------------------------
// types