Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Jan 2002 15:49:02 +0200
From:      Alexey Zelkin <phantom@freebsd.org>
To:        Hajimu UMEMOTO <ume@mahoroba.org>
Cc:        stable@freebsd.org
Subject:   tcsh euc issues (was :Re: HEADSUP: several locale renames were MFCed)
Message-ID:  <20020106154902.B32469@ark.cris.net>
In-Reply-To: <ygen0zszq1j.wl@mille.mahoroba.org>; from ume@mahoroba.org on Sun, Jan 06, 2002 at 02:05:44AM %2B0900
References:  <20020105183137.A79023@ark.cris.net> <ygen0zszq1j.wl@mille.mahoroba.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020106154902.B32469>