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. _______________________________________________ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"