Subject: pkg/15274: Japanese message support patch for shells/tcsh
To: None <gnats-bugs@gnats.netbsd.org>
From: None <yamajun@ofug.net>
List: netbsd-bugs
Date: 01/17/2002 17:13:37
>Number: 15274
>Category: pkg
>Synopsis: Japanese message support patch for shells/tcsh
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Thu Jan 17 00:15:00 PST 2002
>Closed-Date:
>Last-Modified:
>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:
>Unformatted: