From owner-freebsd-standards@FreeBSD.ORG Sat Feb 7 14:09:31 2009 Return-Path: Delivered-To: freebsd-standards@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4BB0A1065673; Sat, 7 Feb 2009 14:09:31 +0000 (UTC) (envelope-from das@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 39D6C8FC0C; Sat, 7 Feb 2009 14:09:31 +0000 (UTC) (envelope-from das@FreeBSD.org) Received: from freefall.freebsd.org (das@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n17E9VXf093862; Sat, 7 Feb 2009 14:09:31 GMT (envelope-from das@freefall.freebsd.org) Received: (from das@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n17E9V8Y093858; Sat, 7 Feb 2009 14:09:31 GMT (envelope-from das) Date: Sat, 7 Feb 2009 14:09:31 GMT Message-Id: <200902071409.n17E9V8Y093858@freefall.freebsd.org> To: christoph.mallon@FreeBSD.org, das@FreeBSD.org, freebsd-standards@FreeBSD.org, freebsd-bugs@FreeBSD.org From: das@FreeBSD.org Cc: Subject: Re: kern/114578: [libc] wide character printing using swprintf(dst, n, "%ls", txt) fails depending on LC_CTYPE 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: Sat, 07 Feb 2009 14:09:32 -0000 Synopsis: [libc] wide character printing using swprintf(dst, n, "%ls", txt) fails depending on LC_CTYPE State-Changed-From-To: open->suspended State-Changed-By: das State-Changed-When: Sat Feb 7 14:04:44 UTC 2009 State-Changed-Why: suspended awaiting patches Class-Changed-From-To: sw-bug->change-request Class-Changed-By: das Class-Changed-When: Sat Feb 7 14:04:44 UTC 2009 Class-Changed-Why: The present implementation of swprintf() could be much better, and the submitter is rightly offended, but this doesn't seem to be a bug. Responsible-Changed-From-To: freebsd-standards->freebsd-bugs Responsible-Changed-By: das Responsible-Changed-When: Sat Feb 7 14:04:44 UTC 2009 Responsible-Changed-Why: Reclassify this as a general bug. Although swprintf's behavior of converting from wide characters to multibyte representations and back again appears not to be a standards violation, a better implementation would avoid the extra work. http://www.freebsd.org/cgi/query-pr.cgi?pr=114578