aboutsummaryrefslogtreecommitdiff
path: root/chinese/pine4/files/patch-ar
diff options
context:
space:
mode:
Diffstat (limited to 'chinese/pine4/files/patch-ar')
-rw-r--r--chinese/pine4/files/patch-ar8
1 files changed, 8 insertions, 0 deletions
diff --git a/chinese/pine4/files/patch-ar b/chinese/pine4/files/patch-ar
new file mode 100644
index 000000000000..b3babb7c1407
--- /dev/null
+++ b/chinese/pine4/files/patch-ar
@@ -0,0 +1,8 @@
+--- pico/estruct.h.orig Sat Dec 28 02:40:35 1996
++++ pico/estruct.h Sat Dec 28 02:41:45 1996
+@@ -114,6 +114,6 @@
+ #define LOBIT_CHAR(C) ((C) > 0x1f && (C) < 0x7f)
+ #define HIBIT_CHAR(C) ((C) > 0x7f && (C) <= 0xff)
+ #define HIBIT_OK(C) (!(gmode & MDHBTIGN))
+-#define VALID_KEY(C) (LOBIT_CHAR(C) || (HIBIT_OK(C) && HIBIT_CHAR(C)))
++#define VALID_KEY(ch) (((ch) & 0x80) ? 1 : LOBIT_CHAR(ch))