19000542 tcsh represents garbled letters to standard error after installing SRU17.5 s11-update
authorMike Sullivan <Mike.Sullivan@Oracle.COM>
Thu, 31 Jul 2014 12:01:39 -0700
branchs11-update
changeset 3243 1359280d9099
parent 3238 93d7197a9600
child 3245 b4b35808faa4
19000542 tcsh represents garbled letters to standard error after installing SRU17.5 18590021 array name doesn't support multi-byte characters in tcsh
components/tcsh/Makefile
components/tcsh/patches/005.locale.patch
--- a/components/tcsh/Makefile	Tue Jul 29 02:58:50 2014 -0700
+++ b/components/tcsh/Makefile	Thu Jul 31 12:01:39 2014 -0700
@@ -20,7 +20,7 @@
 #
 
 #
-# Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
 #
 
 include ../../make-rules/shared-macros.mk
@@ -48,6 +48,11 @@
 
 LOCALEDIR=$(PROTO_DIR)/$(CONFIGURE_LOCALEDIR)
 
+# since we patch out AM_ICONV so we can run autoconf,
+# the new configure doesn't look for iconv(3C), so
+# we'll tell it here.
+CFLAGS += -DHAVE_ICONV -DICONV_CONST=
+
 CONFIGURE_OPTIONS  +=		--localedir=$(CONFIGURE_LOCALEDIR)
 CONFIGURE_OPTIONS  +=		CFLAGS="$(CFLAGS)"
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/tcsh/patches/005.locale.patch	Thu Jul 31 12:01:39 2014 -0700
@@ -0,0 +1,14 @@
+--- tcsh-6.18.01/sh.char.h.orig	Thu Apr 17 10:20:22 2014
++++ tcsh-6.18.01/sh.char.h	Thu Apr 17 10:20:38 2014
[email protected]@ -167,9 +167,9 @@
+ #define iscmdmeta(c)	cmap((c), _CMD)
+ #ifdef WIDE_STRINGS
+ #define letter(c)	(((c) & QUOTE) ? 0 :  \
+-			 (iswalpha((tcshuc) (c)) || (c) == '_'))
++			 (iswalpha((c)) || (c) == '_'))
+ #define alnum(c)	(((c) & QUOTE) ? 0 :  \
+-		         (iswalnum((tcshuc) (c)) || (c) == '_'))
++		         (iswalnum((c)) || (c) == '_'))
+ #else
+ #define letter(c)	(((Char)(c) & QUOTE) ? 0 :  \
+ 			 ((isalpha((tcshuc) (c)) && !(cmap((c), _PUN))) \