diff options
author | Vanilla I. Shu <vanilla@FreeBSD.org> | 2003-05-13 01:19:36 +0000 |
---|---|---|
committer | Vanilla I. Shu <vanilla@FreeBSD.org> | 2003-05-13 01:19:36 +0000 |
commit | 14eeb3f72c5095639159c26191ce44a00b203476 (patch) | |
tree | f947161ff06c87d697bcea8213871433e139c13c /chinese/kon2/files | |
parent | 2ed1d397ebae210270e4a6d24dbd46dc2e5c9b14 (diff) |
Notes
Diffstat (limited to 'chinese/kon2/files')
-rw-r--r-- | chinese/kon2/files/patch-kon.cfg.FreeBSD | 10 | ||||
-rw-r--r-- | chinese/kon2/files/patch-lib::coding.c | 25 |
2 files changed, 35 insertions, 0 deletions
diff --git a/chinese/kon2/files/patch-kon.cfg.FreeBSD b/chinese/kon2/files/patch-kon.cfg.FreeBSD new file mode 100644 index 000000000000..1c816b710cb6 --- /dev/null +++ b/chinese/kon2/files/patch-kon.cfg.FreeBSD @@ -0,0 +1,10 @@ +--- kon.cfg.FreeBSD.orig Mon May 5 04:38:23 2003 ++++ kon.cfg.FreeBSD Mon May 5 04:38:41 2003 +@@ -116,6 +116,7 @@ + # Startup command definition (usually font loading commands are specified) + bdf-zcat16:@@KON16FONT@@ + gzip -cd @@PREFIX@@/share/fonts/bdf/kc15f.bdf.gz | /usr/local/bin/fld -t bdf -n ++ gzip -cd @@PREFIX@@/share/fonts/bdf/gbkst16.bdf.gz | /usr/local/bin/fld -t bdf -n + gzip -cd @@PREFIX@@/share/fonts/bdf/8x16rk.bdf.gz | /usr/local/bin/fld -t bdf -n + bdf-zcat14:@@KON14FONT@@ + gzip -cd @@PREFIX@@/share/fonts/bdf/k14.bdf.gz | /usr/local/bin/fld -t bdf -n diff --git a/chinese/kon2/files/patch-lib::coding.c b/chinese/kon2/files/patch-lib::coding.c new file mode 100644 index 000000000000..09ce75eb0503 --- /dev/null +++ b/chinese/kon2/files/patch-lib::coding.c @@ -0,0 +1,25 @@ +--- lib/coding.c.orig Sat May 3 01:39:46 2003 ++++ lib/coding.c Sat May 3 01:41:08 2003 +@@ -43,10 +43,10 @@ + + static u_int GB2312(u_char ch1, u_char ch2) + { +- if (ch1 > 0x29) +- return(((ch1 - 0x27) * 94 + ch2 - 0x21) << 5); ++ if (ch1 < 0x80) ++ return(((ch1 - 0x81) * 191 + ch2 - 0x40) << 5); + else +- return(((ch1 - 0x21) * 94 + ch2 - 0x21) << 5); ++ return(((ch1 - 0x81) * 191 + 63 + ch2 - 0x80) << 5); + } + + static u_int BIG5(u_char ch1, u_char ch2) +@@ -135,7 +135,7 @@ + }; + + struct fontLoaderRegs fldDRegs[] = { +- { FldGB2312, 0}, ++ { GB2312, 0}, + {FldJISX0208, 0x7424}, + { FldKSC5601, 0x7D7E}, + {FldJISX0208, 0x7424}, |