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

Re: invalid characters and multi-byte [x-y] ranges



Hi,

Peter Stephenson <p.stephenson <at> samsung.com> writes:

> --- a/Src/pattern.c
> +++ b/Src/pattern.c
>  <at>  <at>  -1929,7 +1929,7  <at>  <at>  charrefinc(char **x, char *y, 
int *z)
>      size_t ret;
> 
>      if (!(patglobflags & GF_MULTIBYTE) || !(STOUC(**x) & 0x80))
> -	return WCHAR_INVALID(*(*x)++);
> +	return (wchar_t) STOUC(*(*x)++);
> 
>      ret = mbrtowc(&wc, *x, y-*x, &shiftstate);


It works now, thanks!





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