blob: 15e4203e0c5ba39654fb5337f8a5c22ec7b9d4a3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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;
}
|