FreeBSD Bugzilla – Attachment 13667 Details for
Bug 25895
Add Big5 multibyte support for tcsh
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 5.74 KB, created by
Yen-Ming Lee
on 2001-03-18 14:20:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Yen-Ming Lee
Created:
2001-03-18 14:20:01 UTC
Size:
5.74 KB
patch
obsolete
>--- sh.char.c.orig Sun Mar 18 20:52:40 2001 >+++ sh.char.c Sun Mar 18 21:19:55 2001 >@@ -813,6 +813,61 @@ > _MB1|_MB2, 0, 0, 0, > }; > >+/* Add by Yen-Ming Lee <leeym@cae.ce.ntu.edu.tw> */ >+unsigned short _mbmap_big5[256] = { >+/* first byte 0xa1 - 0xfe */ >+/* second byte 0x40 - 0x7e, 0xa1 - 0xfe */ >+/* 0x00-0x3f = 0, 0x40-0x7e = 2, 0x7f-0xa0 = 0, 0xa1-0xfe = 3, 0xff = 0 */ >+/* 0x00 - 0x3f = 0 */ >+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, >+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, >+/* 0x40 - 0x7e = 2 */ >+ _MB2, _MB2, _MB2, _MB2, >+ _MB2, _MB2, _MB2, _MB2, >+ _MB2, _MB2, _MB2, _MB2, >+ _MB2, _MB2, _MB2, _MB2, >+ _MB2, _MB2, _MB2, _MB2, >+ _MB2, _MB2, _MB2, _MB2, >+ _MB2, _MB2, _MB2, _MB2, >+ _MB2, _MB2, _MB2, _MB2, >+ _MB2, _MB2, _MB2, _MB2, >+ _MB2, _MB2, _MB2, _MB2, >+ _MB2, _MB2, _MB2, _MB2, >+ _MB2, _MB2, _MB2, _MB2, >+ _MB2, _MB2, _MB2, _MB2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_MB2, >+ _MB1|_MB2, _MB1|_MB2, _MB1|_MB2, _MB1|_MB2, >+ _MB1|_MB2, _MB1|_MB2, _MB1|_MB2, _MB1|_MB2, >+ _MB1|_MB2, _MB1|_MB2, _MB1|_MB2, _MB1|_MB2, >+ /* 0xff = 0 */ >+ _MB1|_MB2, _MB1|_MB2, _MB1|_MB2, 0, >+}; >+ > #else /* !(defined(KANJI) && defined(SHORT_STRINGS) && defined(DSPMBYTE)) */ > unsigned short _cmap[256] = { > /* 0 nul 1 soh 2 stx 3 etx */ >--- sh.char.h.orig Sun Mar 18 21:23:26 2001 >+++ sh.char.h Sun Mar 18 21:23:42 2001 >@@ -58,6 +58,7 @@ > extern unsigned short _mbmap[]; > extern unsigned short _mbmap_euc[]; > extern unsigned short _mbmap_sjis[]; >+extern unsigned short _mbmap_big5[]; > /* VARIABLE Check str */ > /* same compiler require #define even not define DSPMBYTE */ > #define _MB1 0x0001 >--- sh.set.c.orig Sun Mar 18 20:53:40 2001 >+++ sh.set.c Sun Mar 18 21:29:29 2001 >@@ -1103,6 +1103,8 @@ > iskcode = 1; > else if (eq(dstr1, STRKEUC)) > iskcode = 2; >+ else if (eq(dstr1, STRKBIG5)) >+ iskcode = 3; > else if ((dstr1[0] - '0') >= 0 && (dstr1[0] - '0') <= 3) { > iskcode = 0; > } >@@ -1127,6 +1129,11 @@ > _cmap[lp] = _cmap_mbyte[lp]; > _mbmap[lp] = _mbmap_euc[lp]; > break; >+ case 3: >+ /* 3 ... big5 */ >+ _cmap[lp] = _cmap_mbyte[lp]; >+ _mbmap[lp] = _mbmap_big5[lp]; >+ break; > default: > xprintf(CGETS(18, 3, > "Warning: unknown multibyte code %d; multibyte disabled\n"), >@@ -1204,6 +1211,7 @@ > { STRLANGEUCKRB, STRKEUC }, > { STRLANGSJIS, STRKSJIS }, > { STRLANGSJISB, STRKSJIS }, >+ { STRLANGBIG5, STRKBIG5 }, > { NULL, NULL } > }; > >--- tc.const.c.orig Sun Mar 18 20:54:26 2001 >+++ tc.const.c Sun Mar 18 21:42:50 2001 >@@ -125,6 +125,7 @@ > Char STRmmliteral[] = { '-', '-', 'l', 'i', 't', 'e', 'r', 'a', 'l', '\0' }; > Char STRKEUC[] = { 'e', 'u', 'c', '\0' }; > Char STRKSJIS[] = { 's', 'j', 'i', 's', '\0' }; >+Char STRKBIG5[] = { 'b', 'i', 'g', '5', '\0' }; > # ifdef MBYTEDEBUG /* Sorry, use for beta testing */ > Char STRmbytemap[] = { 'm', 'b', 'y', 't', 'e', 'm', 'a', 'p', '\0' }; > # endif /* MBYTEMAP */ >@@ -153,6 +154,8 @@ > Char STRLANGSJIS[] = { 'j', 'a', '_', 'J', 'P', '.', 'S', 'J', 'I', 'S', > '\0' }; > Char STRLANGSJISB[] = { '\0' }; >+Char STRLANGBIG5[] = { 'z', 'h', '_', 'T', 'W', '.', 'B', 'i', 'g', '5', >+ '\0' }; > # elif defined(linux) > Char STRLANGEUC[] = { 'j', 'a', '_', 'J', 'P', '.', 'e', 'u', 'c', 'J', > 'P', '\0' }; >@@ -161,6 +164,7 @@ > Char STRLANGSJIS[] = { 'j', 'a', '_', 'J', 'P', '.', 'S', 'J', 'I', 'S', > '\0' }; > Char STRLANGSJISB[] = { '\0' }; >+Char STRLANGBIG5[] = { '\0' }; > # elif defined(__uxpm__) > Char STRLANGEUCJP[] = { 'j', 'a', 'p', 'a', 'n', '\0' }; > Char STRLANGEUCKR[] = { 'k', 'o', 'r', 'e', 'a', '\0' }; >@@ -168,6 +172,7 @@ > Char STRLANGEUCKRB[] = { '\0' }; > Char STRLANGSJIS[] = { '\0' }; > Char STRLANGSJISB[] = { '\0' }; >+Char STRLANGBIG5[] = { '\0' }; > # elif defined(SOLARIS2) > Char STRLANGEUCJP[] = { 'j', 'a', '\0' }; > Char STRLANGEUCKR[] = { 'k', 'o', '\0' }; >@@ -175,6 +180,7 @@ > Char STRLANGEUCKRB[] = { 'k', 'o', 'r', 'e', 'a', 'n', '\0' }; > Char STRLANGSJIS[] = { '\0' }; > Char STRLANGSJISB[] = { '\0' }; >+Char STRLANGBIG5[] = { '\0' }; > # elif defined(hpux) > Char STRLANGEUCJP[] = { 'j', 'a', '_', 'J', 'P', '.', 'e', 'u', 'c', 'J', 'P' }; > Char STRLANGEUCKR[] = { 'k', 'o', '_', 'K', 'R', '.', 'e', 'u', 'c', 'K', 'R' }; >@@ -182,6 +188,7 @@ > Char STRLANGEUCKRB[] = { '\0' }; > Char STRLANGSJIS[] = { '\0' }; > Char STRLANGSJISB[] = { '\0' }; >+Char STRLANGBIG5[] = { '\0' }; > # else > Char STRLANGEUCJP[] = { '\0' }; > Char STRLANGEUCKR[] = { '\0' }; >@@ -189,6 +196,7 @@ > Char STRLANGEUCKRB[] = { '\0' }; > Char STRLANGSJIS[] = { '\0' }; > Char STRLANGSJISB[] = { '\0' }; >+Char STRLANGBIG5[] = { '\0' }; > # endif > # endif /* defined(DSPMBYTE) */ > #endif
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 25895
: 13667