aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Peek <mp@FreeBSD.org>2002-02-10 04:40:26 +0000
committerMark Peek <mp@FreeBSD.org>2002-02-10 04:40:26 +0000
commitad35f55d4538cb8e6cd9e8eb7185a28e6f477160 (patch)
tree9bb71ee65bdbb05b622a581987c52634844dc158
parent6767bd61d2a712aa8c1df05b77201db4e0fb7dc7 (diff)
downloadsrc-ad35f55d4538cb8e6cd9e8eb7185a28e6f477160.tar.gz
src-ad35f55d4538cb8e6cd9e8eb7185a28e6f477160.zip
- Add support for autodetection of *.euc?? and *.EUC locales.
- ja_JP.eucJP, ja_JP.EUC - ko_KR.eucKR, ko_KR.EUC - zn_CN.eucCN, zn_CN.EUC - Add support for zh_TW.Big5 - Add ja_JP.Shift_JIS alias for ja_JP.SJIS Submitted by: phantom Approved by: Christos Zoulas <cristos@zoulas.com> - TCSH maintainer
Notes
Notes: svn path=/vendor/tcsh/dist/; revision=90446
-rw-r--r--contrib/tcsh/sh.set.c2
-rw-r--r--contrib/tcsh/tc.const.c32
2 files changed, 27 insertions, 7 deletions
diff --git a/contrib/tcsh/sh.set.c b/contrib/tcsh/sh.set.c
index fbe35595ad46..91c0127609b2 100644
--- a/contrib/tcsh/sh.set.c
+++ b/contrib/tcsh/sh.set.c
@@ -1212,8 +1212,10 @@ autoset_dspmbyte(pcp)
} dspmt[] = {
{ STRLANGEUCJP, STRKEUC },
{ STRLANGEUCKR, STRKEUC },
+ { STRLANGEUCZH, STRKEUC },
{ STRLANGEUCJPB, STRKEUC },
{ STRLANGEUCKRB, STRKEUC },
+ { STRLANGEUCZHB, STRKEUC },
{ STRLANGSJIS, STRKSJIS },
{ STRLANGSJISB, STRKSJIS },
{ STRLANGBIG5, STRKBIG5 },
diff --git a/contrib/tcsh/tc.const.c b/contrib/tcsh/tc.const.c
index 883efc6f82a1..a3385dd2f4eb 100644
--- a/contrib/tcsh/tc.const.c
+++ b/contrib/tcsh/tc.const.c
@@ -133,8 +133,9 @@ Char STRmbytemap[] = { 'm', 'b', 'y', 't', 'e', 'm', 'a', 'p', '\0' };
/* dspmbyte autoset trap */
/* STRLANGEUCJP,STRLANGEUCJPB = EUCJP Trap */
/* STRLANGEUCKR,STRLANGEUCKRB = EUCKR Trap */
+/* STRLANGEUCZH,STRLANGEUCZHB = EUCZH Trap */
/* STRLANGSJIS,STRLANGSJISB = SJIS Trap */
-# if defined(__FreeBSD__) || defined(__uxps__) || defined(sgi) || defined(aix) || defined(__CYGWIN__) || defined(linux)
+# if defined(__uxps__) || defined(sgi) || defined(aix) || defined(__CYGWIN__) || defined(linux)
Char STRLANGEUCJP[] = { 'j', 'a', '_', 'J', 'P', '.', 'E', 'U', 'C', '\0' };
Char STRLANGEUCKR[] = { 'k', 'o', '_', 'K', 'R', '.', 'E', 'U', 'C', '\0' };
# if defined(__uxps__)
@@ -156,44 +157,61 @@ Char STRLANGSJIS[] = { 'j', 'a', '_', 'J', 'P', '.', 'S', 'J', 'I', 'S',
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',
+Char STRLANGEUCZH[] = { '\0' };
+Char STRLANGEUCZHB[] = { '\0' };
+# elif defined(__FreeBSD__)
+Char STRLANGEUCJP[] = { 'j', 'a', '_', 'J', 'P', '.', 'e', 'u', 'c', 'J',
'P', '\0' };
-Char STRLANGEUCB[] = { 'j', 'a', '_', 'J', 'P', '.', 'u', 'j', 'i', 's',
- '\0' };
+Char STRLANGEUCJPB[] = { 'j', 'a', '_', 'J', 'P', '.', 'E', 'U', 'C', '\0' };
+Char STRLANGEUCKR[] = { 'k', 'o', '_', 'K', 'R', '.', 'e', 'u', 'c', 'K',
+ 'R', '\0' };
+Char STRLANGEUCKRB[] = { 'k', 'o', '_', 'K', 'R', '.', 'E', 'U', 'C', '\0' };
+Char STRLANGEUCZH[] = { 'z', 'h', '_', 'C', 'N', '.', 'e', 'u', 'c', 'C',
+ 'N', '\0' };
+Char STRLANGEUCZHB[] = { 'z', 'h', '_', 'C', 'N', '.', 'E', 'U', 'C', '\0' };
Char STRLANGSJIS[] = { 'j', 'a', '_', 'J', 'P', '.', 'S', 'J', 'I', 'S',
'\0' };
-Char STRLANGSJISB[] = { '\0' };
-Char STRLANGBIG5[] = { '\0' };
+Char STRLANGSJISB[] = { 'j', 'a', '_', 'J', 'P', '.', 'S', 'h', 'i', 'f',
+ 't', '_', 'J', 'I', 'S', '\0' };
+Char STRLANGBIG5[] = { 'z', 'h', '_', 'T', 'W', '.', 'B', 'i', 'g', '5',
+ '\0' };
# elif defined(__uxpm__)
Char STRLANGEUCJP[] = { 'j', 'a', 'p', 'a', 'n', '\0' };
Char STRLANGEUCKR[] = { 'k', 'o', 'r', 'e', 'a', '\0' };
+Char STRLANGEUCZH[] = { '\0' };
Char STRLANGEUCJPB[] = { '\0' };
Char STRLANGEUCKRB[] = { '\0' };
+Char STRLANGEUCZHB[] = { '\0' };
Char STRLANGSJIS[] = { '\0' };
Char STRLANGSJISB[] = { '\0' };
Char STRLANGBIG5[] = { '\0' };
# elif defined(SOLARIS2)
Char STRLANGEUCJP[] = { 'j', 'a', '\0' };
Char STRLANGEUCKR[] = { 'k', 'o', '\0' };
+Char STRLANGEUCZH[] = { '\0' };
Char STRLANGEUCJPB[] = { 'j', 'a', 'p', 'a', 'n', 'e', 's', 'e', '\0' };
Char STRLANGEUCKRB[] = { 'k', 'o', 'r', 'e', 'a', 'n', '\0' };
+Char STRLANGEUCZHB[] = { '\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' };
+Char STRLANGEUCZH[] = { '\0' };
Char STRLANGEUCJPB[] = { '\0' };
Char STRLANGEUCKRB[] = { '\0' };
+Char STRLANGEUCZHB[] = { '\0' };
Char STRLANGSJIS[] = { '\0' };
Char STRLANGSJISB[] = { '\0' };
Char STRLANGBIG5[] = { '\0' };
# else
Char STRLANGEUCJP[] = { '\0' };
Char STRLANGEUCKR[] = { '\0' };
+Char STRLANGEUCZH[] = { '\0' };
Char STRLANGEUCJPB[] = { '\0' };
Char STRLANGEUCKRB[] = { '\0' };
+Char STRLANGEUCZHB[] = { '\0' };
Char STRLANGSJIS[] = { '\0' };
Char STRLANGSJISB[] = { '\0' };
Char STRLANGBIG5[] = { '\0' };