Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: signed chars without multibyte support



On Tue, Dec 19, 2006 at 12:55:38PM +0000, Peter Stephenson wrote:
> +	    *c = x[1] ^ 32;
[...]
> +	*c = (char)*x;

I don't really like this, as it means that the int value returned can be
a -1 (EOF) when *x is 0xFF.  It would be better to change the code that
is comparing a char against an int to use STOUC() on the char value in
the comparison.

..wayne..



Messages sorted by: Reverse Date, Date, Thread, Author