diff options
author | clive <clive@FreeBSD.org> | 2001-03-19 05:57:09 +0800 |
---|---|---|
committer | clive <clive@FreeBSD.org> | 2001-03-19 05:57:09 +0800 |
commit | c5d8b8aa4aac56793610d158710880166f555f66 (patch) | |
tree | ce319121805485dcb550112b6b4f6f93482b3bd7 /chinese | |
parent | 2b35b01ad00ef291fc8507ebb426b39646295c5f (diff) | |
download | freebsd-ports-gnome-c5d8b8aa4aac56793610d158710880166f555f66.tar.gz freebsd-ports-gnome-c5d8b8aa4aac56793610d158710880166f555f66.tar.zst freebsd-ports-gnome-c5d8b8aa4aac56793610d158710880166f555f66.zip |
Update Big5 encoding range.
From [\xA1-\xFE][\x40-\x7E\xA1-\xFE] (defined in 1984)
to [\x81-\xFE][\x40-\x7E\x80-\xFE] (Modern Big5+)
Obtained from: TWBUG
Diffstat (limited to 'chinese')
-rw-r--r-- | chinese/bitchx/files/patch-include::config.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chinese/bitchx/files/patch-include::config.h b/chinese/bitchx/files/patch-include::config.h index dc6276edec65..ccd29ebd4759 100644 --- a/chinese/bitchx/files/patch-include::config.h +++ b/chinese/bitchx/files/patch-include::config.h @@ -25,8 +25,8 @@ +#ifdef WANT_BIG5 +/* XXX I didn't check the encoding range of big5+. This is standard big5. */ +#define is_big5_los(lo) (((char)0x40<=lo)&&(lo<=(char)0x7E)) /* standard */ -+#define is_big5_lox(lo) (((char)0xA1<=lo)&&(lo<=(char)0xFE)) /* extended */ -+#define is_big5_hi(hi) (((char)0xA1<=hi)&&(hi<=(char)0xFE)) ++#define is_big5_lox(lo) (((char)0x80<=lo)&&(lo<=(char)0xFE)) /* extended */ ++#define is_big5_hi(hi) (((char)0x81<=hi)&&(hi<=(char)0xFE)) +#define is_big5(hi,lo) is_big5_hi(hi) && (is_big5_los(lo) || is_big5_lox(lo)) +#endif WANT_BIG5 + |