svn commit: r243474 - head/usr.bin/cut

Andrey Chernov ache at freebsd.org
Sat Nov 24 08:00:56 UTC 2012


On 24.11.2012 8:15, Andrew Turner wrote:
>   The is_delim function works on wchar_t characters not ints, update the
>   function to take a wchar_t as it's argument.
>  static int
> -is_delim(int ch)
> +is_delim(wchar_t ch)
>  {
>  	if (wflag) {
>  		if (ch == ' ' || ch == '\t')
> 

I can't look at the whole code at this moment, but taking standalone
this is incorrect comparison for wchar_t. Should be L' ' and L'\t' instead.


More information about the svn-src-all mailing list