From owner-svn-src-head@FreeBSD.ORG Tue Mar 9 13:18:17 2010 Return-Path: Delivered-To: svn-src-head@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A97041065785; Tue, 9 Mar 2010 13:18:17 +0000 (UTC) (envelope-from das@FreeBSD.ORG) Received: from zim.MIT.EDU (ZIM.MIT.EDU [18.95.3.101]) by mx1.freebsd.org (Postfix) with ESMTP id 27F0F8FC23; Tue, 9 Mar 2010 13:18:17 +0000 (UTC) Received: from zim.MIT.EDU (localhost [127.0.0.1]) by zim.MIT.EDU (8.14.3/8.14.2) with ESMTP id o29DIGrS016368; Tue, 9 Mar 2010 08:18:16 -0500 (EST) (envelope-from das@FreeBSD.ORG) Received: (from das@localhost) by zim.MIT.EDU (8.14.3/8.14.2/Submit) id o29DIGYu016367; Tue, 9 Mar 2010 08:18:16 -0500 (EST) (envelope-from das@FreeBSD.ORG) Date: Tue, 9 Mar 2010 08:18:15 -0500 From: David Schultz To: Andrey Chernov , Bruce Evans , Jaakko Heinonen , src-committers@FreeBSD.ORG, svn-src-all@FreeBSD.ORG, svn-src-head@FreeBSD.ORG Message-ID: <20100309131815.GA16286@zim.MIT.EDU> Mail-Followup-To: Andrey Chernov , Bruce Evans , Jaakko Heinonen , src-committers@FreeBSD.ORG, svn-src-all@FreeBSD.ORG, svn-src-head@FreeBSD.ORG References: <201003061921.o26JLv36014114@svn.freebsd.org> <20100307104626.GA9015@a91-153-117-195.elisa-laajakaista.fi> <20100308015926.O11669@delplex.bde.org> <20100307183139.GA50243@nagual.pp.ru> <20100307201027.GA51623@nagual.pp.ru> <20100308195123.GA10624@zim.MIT.EDU> <20100308202919.GA67990@nagual.pp.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100308202919.GA67990@nagual.pp.ru> Cc: Subject: Re: svn commit: r204803 - head/usr.bin/uniq X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Mar 2010 13:18:17 -0000 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.