Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Bug-fix for zsh-3.0pre6
- X-seq: zsh-workers 1937
- From: Heiko Schroeder <heiko@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxxx
- Subject: Bug-fix for zsh-3.0pre6
- Date: Sun, 11 Aug 1996 12:20 +0100 (MET)
- Reply-to: heiko@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx (Heiko Schroeder)
Hi!
There is a small bug in math.c, in the function getcvar. It doesn't
check if the first char in the string is Meta and thus produces wrong
output in this case.
BTW, does it make sence to return a negative value for 8bit characters?
I think not, so I added a cast to unsigned char so that only positive
values are returned.
Changing the return statement to
return (unsigned char)(*t == Meta ? t[1] ^ 32 : *t);
should fix the bug. (math.c, line 427)
CU
Heiko
--
+----------------------------------------+------------------------------------+
|Email: | Snail-mail: Heiko Schroeder |
| | Lerchenweg 120 |
| heiko@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | 52223 Stolberg |
| | GERMANY |
+----------------------------------------+------------------------------------+
Messages sorted by:
Reverse Date,
Date,
Thread,
Author