From owner-freebsd-current@FreeBSD.ORG Thu Jun 21 12:38:09 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 663791065673 for ; Thu, 21 Jun 2012 12:38:09 +0000 (UTC) (envelope-from demelier.david@gmail.com) Received: from mail-ee0-f54.google.com (mail-ee0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id E16188FC16 for ; Thu, 21 Jun 2012 12:38:08 +0000 (UTC) Received: by eeke49 with SMTP id e49so264390eek.13 for ; Thu, 21 Jun 2012 05:38:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=yB0jNnxOwHqJqz0dvZaechtgCvt4VzMLrW/CzJpc374=; b=jX/w+Vh5R2Eexcm2fhDznM61ZnNURbbjitMwOLVDPS4M1oe6R4i1P6q1eWHjbmQEx9 sw6TQi89dkkZTJJO3XYj+qvLX4EFqFdnrDFK6pevTiBSOlHThFIc2uLV15YgTtoLiplK q/O0AbszFui6oSdpoE0ym094IPKccX+oS88644m1J2CheOIbA4pKK7aVFRSQZAWmhqso 3kxJ6fXgNww8WHQAGOgCSzNq4TaKMlUTJPy4LZwIsJVeAjvQnmY9CPmCZaQo2nFWb0z6 RutDxXlm7mWi3hQOt4IeGiCptXVpGEg4PUb+iv8IZCHQHdzqW8d/pIRbfD9QYiUUt7Vx +npA== Received: by 10.14.187.142 with SMTP id y14mr5619133eem.215.1340282287643; Thu, 21 Jun 2012 05:38:07 -0700 (PDT) Received: from Groseille.malikania.fr (197.21.102.84.rev.sfr.net. [84.102.21.197]) by mx.google.com with ESMTPS id m46sm84514136eeh.9.2012.06.21.05.38.05 (version=SSLv3 cipher=OTHER); Thu, 21 Jun 2012 05:38:06 -0700 (PDT) Message-ID: <4FE315B6.9020102@gmail.com> Date: Thu, 21 Jun 2012 14:38:14 +0200 From: David Demelier User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:12.0) Gecko/20120602 Thunderbird/12.0.1 MIME-Version: 1.0 To: freebsd-current@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Thu, 21 Jun 2012 12:42:01 +0000 Subject: mbstowcs(3) may not return -1 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jun 2012 12:38:09 -0000 Hello, While reading the manpage of mbstowcs I noticed an error in the RETURN VALUES : The mbstowcs() function returns the number of wide characters converted, not counting any terminating null wide character, or -1 if an invalid multibyte character was encountered. Since size_t is unsigned, it can't returns -1. Cheers, -- David Demelier