mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-19 08:13:21 +00:00
- Fix input error on some Big5 range
- Summitted by Edward G.J. Lee <edt1023@info.sayya.org> Thanks. PR: ports/100545 Submitted by: maintainer
This commit is contained in:
parent
4da180cc34
commit
2e25ec4577
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=168250
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= zhcon
|
||||
PORTVERSION= 0.2.5
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= chinese
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= ${PORTNAME}
|
||||
|
11
chinese/zhcon/files/patch-src-winime.cpp
Normal file
11
chinese/zhcon/files/patch-src-winime.cpp
Normal file
@ -0,0 +1,11 @@
|
||||
--- src/winime.cpp.orig Tue Apr 25 00:38:28 2006
|
||||
+++ src/winime.cpp Wed Jul 19 22:29:47 2006
|
||||
@@ -184,6 +184,8 @@
|
||||
p++;
|
||||
while (IsGB2312_1(*p) && IsGB2312_2(*(p + 1)))
|
||||
p += 2;
|
||||
+ while (IsBIG5_1(*p) && IsBIG5_2(*(p + 1)))
|
||||
+ p += 2;
|
||||
return !IsHzCode1(*p);
|
||||
}
|
||||
|
15
chinese/zhcon/files/patch-src-winime.h
Normal file
15
chinese/zhcon/files/patch-src-winime.h
Normal file
@ -0,0 +1,15 @@
|
||||
--- src/winime.h.orig Tue Apr 25 00:38:26 2006
|
||||
+++ src/winime.h Wed Jul 19 22:27:58 2006
|
||||
@@ -68,6 +68,12 @@
|
||||
bool IsGB2312_2(char c) const {
|
||||
return c >= 0xA1 && c <= 0xFE;
|
||||
}
|
||||
+ bool IsBIG5_1(char c) const {
|
||||
+ return c >= 0xA1 && c <= 0xFE;
|
||||
+ }
|
||||
+ bool IsBIG5_2(char c) const {
|
||||
+ return c >= 0x40 && c <= 0x7E;
|
||||
+ }
|
||||
|
||||
void AddCandilist(char*& p,unsigned& buflen);
|
||||
void SkipNext(char*& rp);
|
Loading…
Reference in New Issue
Block a user