svn commit: r204803 - head/usr.bin/uniq
das at FreeBSD.ORG
Tue Mar 9 13:18:17 UTC 2010
On Mon, Mar 08, 2010, Andrey Chernov wrote:
> > I've had a wide character version of getline() ready to
> > commit for some time (I just need to find the time to do it), so
> > you won't need to call mbstowcs() as a separate step.
> It does not help, since wide version will fail on EILSEQ with sync lost,
> as getwc() does. Initially I was thinking about ftell+fseek back, but not
> all files are seekable.
Yeah, and unfortunately the draft spec for getwline() has several
bugs, one of which is that it doesn't specify how EILSEQ in the
middle of a line is handled.
More information about the svn-src-head