aboutsummaryrefslogtreecommitdiffstats
path: root/shells/bash1/files/patch-ac
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>1999-03-30 09:31:43 +0800
committerobrien <obrien@FreeBSD.org>1999-03-30 09:31:43 +0800
commit1124f95337035de1510e5b649132fc1d6a365ad6 (patch)
treef35ba73fcd7aae08be167e9d5fe31d2cf28e2e3f /shells/bash1/files/patch-ac
parent6da47198bb1667ecd5b06dfe6012389181ed37bc (diff)
downloadfreebsd-ports-graphics-1124f95337035de1510e5b649132fc1d6a365ad6.tar.gz
freebsd-ports-graphics-1124f95337035de1510e5b649132fc1d6a365ad6.tar.zst
freebsd-ports-graphics-1124f95337035de1510e5b649132fc1d6a365ad6.zip
Bash version 1.17 was much more popular than I thought.
(deleted to save space on the CDROM since I thought few were still using it)
Diffstat (limited to 'shells/bash1/files/patch-ac')
-rw-r--r--shells/bash1/files/patch-ac41
1 files changed, 41 insertions, 0 deletions
diff --git a/shells/bash1/files/patch-ac b/shells/bash1/files/patch-ac
new file mode 100644
index 00000000000..4176de4b36a
--- /dev/null
+++ b/shells/bash1/files/patch-ac
@@ -0,0 +1,41 @@
+*** readline.c.orig Wed May 24 18:43:28 1995
+--- lib/readline/readline.c Wed Jul 19 20:26:53 1995
+***************
+*** 958,964 ****
+ static void
+ readline_initialize_everything ()
+ {
+! char *t;
+
+ /* Find out if we are running in Emacs. */
+ running_in_emacs = getenv ("EMACS") != (char *)0;
+--- 958,964 ----
+ static void
+ readline_initialize_everything ()
+ {
+! char *t, *t1;
+
+ /* Find out if we are running in Emacs. */
+ running_in_emacs = getenv ("EMACS") != (char *)0;
+***************
+*** 993,1000 ****
+ /* Check for LC_CTYPE and use its value to decide the defaults for
+ 8-bit character input and output. */
+ t = getenv ("LC_CTYPE");
+! if (t && (strcmp (t, "iso-8859-1") == 0 || strcmp (t, "iso_8859_1") == 0 ||
+! strcmp (t, "ISO-8859-1") == 0))
+ {
+ _rl_meta_flag = 1;
+ _rl_convert_meta_chars_to_ascii = 0;
+--- 993,1003 ----
+ /* Check for LC_CTYPE and use its value to decide the defaults for
+ 8-bit character input and output. */
+ t = getenv ("LC_CTYPE");
+! t1 = getenv ("LANG");
+! if (t && (strstr (t, "8859-1") != NULL || strstr (t, "8859_1") != NULL ||
+! strstr (t, "KOI8-R") != NULL || strstr (t, "koi8-r") != NULL) ||
+! t1 && (strstr (t1, "8859-1") != NULL || strstr (t1, "8859_1") != NULL ||
+! strstr (t1, "KOI8-R") != NULL || strstr (t1, "koi8-r") != NULL))
+ {
+ _rl_meta_flag = 1;
+ _rl_convert_meta_chars_to_ascii = 0;