From owner-freebsd-standards@FreeBSD.ORG Mon Jun 1 22:07:01 2009 Return-Path: Delivered-To: freebsd-standards@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 69DE010656A6 for ; Mon, 1 Jun 2009 22:07:01 +0000 (UTC) (envelope-from gabor@FreeBSD.org) Received: from server.mypc.hu (server.mypc.hu [87.229.73.95]) by mx1.freebsd.org (Postfix) with ESMTP id 22E0C8FC21 for ; Mon, 1 Jun 2009 22:07:00 +0000 (UTC) (envelope-from gabor@FreeBSD.org) Received: from localhost (localhost [127.0.0.1]) by server.mypc.hu (Postfix) with ESMTP id 62C2614D5504 for ; Mon, 1 Jun 2009 23:51:58 +0200 (CEST) X-Virus-Scanned: amavisd-new at t-hosting.hu Received: from server.mypc.hu ([127.0.0.1]) by localhost (server.mypc.hu [127.0.0.1]) (amavisd-new, port 10024) with LMTP id HscTKOoCwjJ9 for ; Mon, 1 Jun 2009 23:51:57 +0200 (CEST) Received: from [192.168.1.105] (catv-80-98-231-64.catv.broadband.hu [80.98.231.64]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by server.mypc.hu (Postfix) with ESMTPSA id 8C2FB14D54A2 for ; Mon, 1 Jun 2009 23:51:57 +0200 (CEST) Message-ID: <4A244D7A.9040508@FreeBSD.org> Date: Mon, 01 Jun 2009 23:51:54 +0200 From: Gabor Kovesdan User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: freebsd-standards@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: mbstowcs() contradiction X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Jun 2009 22:07:04 -0000 Hello, I've just found a contradiction in the mbstowcs() man page. It says: "The mbstowcs() function returns ........ or -1 if an invalid multibyte character was encountered." It is impossible, because its return value is size_t, which is a signed type. Looking on the online documentaton, I think it should return (size_t)-1 on error. I've also looked at the code and I think our implementation is standard-compliant, but could someone take another look, please? If someone can acknowledge I'm right, I'll update the man page. Thanks, -- Gabor Kovesdan FreeBSD Volunteer EMAIL: gabor@FreeBSD.org .:|:. gabor@kovesdan.org WEB: http://people.FreeBSD.org/~gabor .:|:. http://kovesdan.org