Re: wcwidth() fix in file(1)

2011-04-11 Thread Stefan Sperling
On Mon, Apr 04, 2011 at 12:08:29AM +0200, Stefan Sperling wrote: > Make the file_mbswidth() function cope if wcwidth() returns -1. > > Maybe this should just call wcswidth() but I'll leave that for another day. Anyone? Fixing wcwidth() to return -1 for non-printable characters depends on this. >

wcwidth() fix in file(1)

2011-04-03 Thread Stefan Sperling
Make the file_mbswidth() function cope if wcwidth() returns -1. Maybe this should just call wcswidth() but I'll leave that for another day. Index: file.c === RCS file: /cvs/src/usr.bin/file/file.c,v retrieving revision 1.22 diff -u -