NetBSD Problem Report #15274
Received: (qmail 9948 invoked from network); 17 Jan 2002 08:14:24 -0000
Message-Id: <200201170813.g0H8DbS00944@yamajun.st.ie.u-ryukyu.ac.jp>
Date: Thu, 17 Jan 2002 17:13:37 +0900 (JST)
From: yamajun@ofug.net
Reply-To: yamajun@ofug.net
To: gnats-bugs@gnats.netbsd.org
Subject: Japanese message support patch for shells/tcsh
X-Send-Pr-Version: 3.95
>Number: 15274
>Category: pkg
>Synopsis: Japanese message support patch for shells/tcsh
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: kim
>State: closed
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Thu Jan 17 08:15:00 +0000 2002
>Closed-Date: Sun Aug 11 05:12:04 +0000 2002
>Last-Modified: Sun Aug 11 05:12:04 +0000 2002
>Originator: Yamashiro, Jun
>Release: NetBSD 1.5ZA
>Organization:
>Environment:
>Description:
tcsh(1) is supported Japanese message catalog. but,
now tcsh(1) is not supported NetBSD Japanese locale(ja_JP.eucJP).
This patch is add Japanese message catalog support for NetBSD.
(need Japanese locale environment(ex: NetBSD-current).)
regards.
>How-To-Repeat:
>Fix:
diff -u -N -r tcsh.orig/Makefile tcsh/Makefile
--- tcsh.orig/Makefile Fri Jan 4 17:58:08 2002
+++ tcsh/Makefile Fri Jan 4 18:20:56 2002
@@ -40,7 +40,7 @@
german:ISO_8859-1:de:AT:CH:DE \
greek:ISO_8859-7:el:GR \
italian:ISO_8859-1:it:CH:IT \
- ja:EUC:ja:JP \
+ ja:eucJP:ja:JP \
russian:KOI8-R:ru:RU:SU \
spanish:ISO_8859-1:es:ES \
ukrainian:KOI8-U:uk:UA \
diff -u -N -r tcsh.orig/patches/patch-af tcsh/patches/patch-af
--- tcsh.orig/patches/patch-af Fri Jan 4 17:58:08 2002
+++ tcsh/patches/patch-af Fri Jan 4 18:20:48 2002
@@ -1,7 +1,7 @@
$NetBSD: patch-af,v 1.6 1998/09/09 00:17:24 tv Exp $
---- config_f.h.orig Fri Apr 26 21:17:30 1996
-+++ config_f.h Wed Sep 9 00:18:23 1998
+--- config_f.h.orig Sun Jun 11 11:14:10 2000
++++ config_f.h Fri Jan 4 15:34:03 2002
@@ -65,7 +65,11 @@
* if you don't have <nl_types.h>, you don't want
* to define this.
@@ -15,3 +15,20 @@
/*
* LOGINFIRST Source ~/.login before ~/.cshrc
+@@ -117,14 +121,14 @@
+ * be used with SHORT_STRINGS
+ *
+ */
+-#undef KANJI
++#define KANJI
+
+ /*
+ * DSPMBYTE add variable "dspmbyte" and display multi-byte string at
+ * only output, when "dspmbyte" is set. Should be used with
+ * KANJI
+ */
+-#undef DSPMBYTE
++#define DSPMBYTE
+
+ /*
+ * MBYTEDEBUG when "dspmbyte" is changed, set multi-byte checktable to
diff -u -N -r tcsh.orig/patches/patch-ak tcsh/patches/patch-ak
--- tcsh.orig/patches/patch-ak Thu Jan 1 09:00:00 1970
+++ tcsh/patches/patch-ak Fri Jan 4 18:29:13 2002
@@ -0,0 +1,23 @@
+$NetBSD$
+
+--- tc.const.c.orig Tue Aug 7 08:52:04 2001
++++ tc.const.c Fri Jan 4 17:32:01 2002
+@@ -189,6 +189,18 @@
+ Char STRLANGSJIS[] = { '\0' };
+ Char STRLANGSJISB[] = { '\0' };
+ Char STRLANGBIG5[] = { '\0' };
++# elif defined(__NetBSD__)
++Char STRLANGEUCJP[] = { 'j', 'a', '_', 'J', 'P', '.', 'e', 'u', 'c', 'J',
++ 'P', '\0' };
++Char STRLANGEUCKR[] = { 'k', 'o', '_', 'K', 'R', '.', 'e', 'u', 'c', 'K',
++ 'R', '\0' };
++Char STRLANGEUCJPB[] = { 'j', 'a', '\0' };
++Char STRLANGEUCKRB[] = { 'k', 'o', '\0' };
++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' };
+ # else
+ Char STRLANGEUCJP[] = { '\0' };
+ Char STRLANGEUCKR[] = { '\0' };
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->uebayasi
Responsible-Changed-By: uebayasi
Responsible-Changed-When: Fri Mar 22 02:14:33 PST 2002
Responsible-Changed-Why:
I'll discuss this issue on a Japanese local list and report the result back
here.
State-Changed-From-To: open->suspended
State-Changed-By: kim
State-Changed-When: Sat Aug 10 06:18:27 PDT 2002
State-Changed-Why:
I will apply this as deemed appropriate after the 1.6 pkgsrc freeze is over.
Responsible-Changed-From-To: uebayasi->kim
Responsible-Changed-By: kim
Responsible-Changed-When: Sat Aug 10 06:18:27 PDT 2002
Responsible-Changed-Why:
I will check if enabling KANJI is safe for non-KANJI users. If you have
any information on that, I'd appreciate hearing from you.
At least DSPMBYTE should be ok.
State-Changed-From-To: suspended->closed
State-Changed-By: kim
State-Changed-When: Sat Aug 10 22:06:20 PDT 2002
State-Changed-Why:
Applied the patches with some changes.
Thanks for the PR!
+ Kim
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.