From owner-freebsd-stable Sun Jan 6 5:49:44 2002 Delivered-To: freebsd-stable@freebsd.org Received: from columbus.cris.net (columbus.cris.net [212.110.128.65]) by hub.freebsd.org (Postfix) with ESMTP id 28EA737B402 for ; Sun, 6 Jan 2002 05:49:37 -0800 (PST) Received: from ark.cris.net (ark.cris.net [212.110.128.68]) by columbus.cris.net (8.9.3/8.9.3) with ESMTP id PAA30366; Sun, 6 Jan 2002 15:49:34 +0200 (EET) Received: (from phantom@localhost) by ark.cris.net (8.11.1/8.11.1) id g06Dn2p33869; Sun, 6 Jan 2002 15:49:02 +0200 (EET) Date: Sun, 6 Jan 2002 15:49:02 +0200 From: Alexey Zelkin To: Hajimu UMEMOTO Cc: stable@freebsd.org Subject: tcsh euc issues (was :Re: HEADSUP: several locale renames were MFCed) Message-ID: <20020106154902.B32469@ark.cris.net> References: <20020105183137.A79023@ark.cris.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: ; from ume@mahoroba.org on Sun, Jan 06, 2002 at 02:05:44AM +0900 X-Operating-System: FreeBSD 3.5-STABLE i386 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG hi, On Sun, Jan 06, 2002 at 02:05:44AM +0900, Hajimu UMEMOTO wrote: > phantom> I've just MFCed following several locale renames > > phantom> 1. ISO_* -> ISO* > phantom> 2. ru_SU* -> ru_RU* > phantom> 3. DIS_* -> ISO*-15 > phantom> 4. *.EUC -> *.euc?? > phantom> 5. *.ASCII -> *.US-ASCII > > Current tcsh is not aware of ja_JP.eucJP locale. I sent the patch to > the author of tcsh, before. We need to merge it, too. However, once > MFC is done, the patch becomes insufficient. The patch I sent is > following: From my recent review of FreeBSD locales I can say that this patch does not take in line alias of ja_JP.SJIS -- ja_JP.Shift_JIS. This is simple case to fix and attached patch contains it. NOTE: Size of patch is related to small cleanup of unused variables in tcsh and moving definition of FreeBSD related values to separate ifdef block. BUT there's still one interesting question. I know that it's related to Chinese people, not Japanese, but I don't know mailing lists related to such discussions. FreeBSD has also zh_CN.eucCN (aka zh_CN.EUC) locale which is also EUC. Should not tcsh handle with builtin EUC Trap ? Suggest please whom should I contact about this issue ? Any Chinese EUC users who use tcsh here? Index: tc.const.c =================================================================== RCS file: /home/cvs/freebsd/src/contrib/tcsh/tc.const.c,v retrieving revision 1.1.1.4 diff -u -r1.1.1.4 tc.const.c --- tc.const.c 5 Sep 2001 17:49:31 -0000 1.1.1.4 +++ tc.const.c 6 Jan 2002 13:34:20 -0000 @@ -134,7 +134,7 @@ /* STRLANGEUCJP,STRLANGEUCJPB = EUCJP Trap */ /* STRLANGEUCKR,STRLANGEUCKRB = EUCKR 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,15 +156,19 @@ 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', +# 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 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' }; To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message