aboutsummaryrefslogtreecommitdiffstats
path: root/bash/bash-2.05b/s390-build.patch
diff options
context:
space:
mode:
Diffstat (limited to 'bash/bash-2.05b/s390-build.patch')
-rw-r--r--bash/bash-2.05b/s390-build.patch46
1 files changed, 46 insertions, 0 deletions
diff --git a/bash/bash-2.05b/s390-build.patch b/bash/bash-2.05b/s390-build.patch
index e69de29bb2..15e4203e0c 100644
--- a/bash/bash-2.05b/s390-build.patch
+++ b/bash/bash-2.05b/s390-build.patch
@@ -0,0 +1,46 @@
+*** ../bash-2.05b/parse.y Tue May 21 11:57:30 2002
+--- ./parse.y Thu Sep 26 12:08:19 2002
+***************
+*** 4525,4529 ****
+ set_line_mbstate ()
+ {
+! int i, previ, len;
+ mbstate_t mbs, prevs;
+ size_t mbclen;
+--- 4534,4538 ----
+ set_line_mbstate ()
+ {
+! int i, previ, len, c;
+ mbstate_t mbs, prevs;
+ size_t mbclen;
+***************
+*** 4540,4544 ****
+ mbs = prevs;
+
+! if (shell_input_line[i] == EOF)
+ {
+ int j;
+--- 4549,4554 ----
+ mbs = prevs;
+
+! c = shell_input_line[i];
+! if (c == EOF)
+ {
+ int j;
+***************
+*** 4564,4568 ****
+ else
+ {
+! /* mbrlen doesn't return any other values */
+ }
+
+--- 4574,4582 ----
+ else
+ {
+! /* XXX - what to do if mbrlen returns 0? (null wide character) */
+! int j;
+! for (j = i; j < len; j++)
+! shell_input_line_property[j] = 1;
+! break;
+ }
+