1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-14 23:46:10 +00:00
freebsd-ports/chinese/pine4/files/patch-an
Vanilla I. Shu 7bc3eef5e5 Fix chinese display/input problem in pine.
PR:		ports/5083
Submitted by:	Yen-Shuo Su <yssu@CCCA.NCTU.edu.tw>
1997-12-01 19:47:24 +00:00

9 lines
390 B
Plaintext

--- 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))