From owner-freebsd-standards@FreeBSD.ORG Tue Apr 22 14:47:44 2003 Return-Path: Delivered-To: freebsd-standards@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7D55F37B401; Tue, 22 Apr 2003 14:47:44 -0700 (PDT) Received: from freebsd.org.ru (www.freebsd.org.ru [194.84.67.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6977E43FBD; Tue, 22 Apr 2003 14:47:43 -0700 (PDT) (envelope-from osa@freebsd.org.ru) Received: by freebsd.org.ru (Postfix, from userid 1000) id CA74CBE; Wed, 23 Apr 2003 01:47:40 +0400 (MSD) Date: Wed, 23 Apr 2003 01:47:40 +0400 From: "Sergey A. Osokin" To: Bruce Evans Message-ID: <20030422214740.GB73209@freebsd.org.ru> References: <20030422202647.7D3D4C4@freebsd.org.ru> <20030423071726.M19073@gamplex.bde.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030423071726.M19073@gamplex.bde.org> User-Agent: Mutt/1.5.4i cc: FreeBSD-gnats-submit@freebsd.org cc: freebsd-standards@freebsd.org Subject: Re: standards/51292: [PATCH] add ecvt()/fcvt()/gcvt() functions (SUSv3) X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: osa@FreeBSD.org.ru List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Apr 2003 21:47:44 -0000 On Wed, Apr 23, 2003 at 07:28:49AM +1000, Bruce Evans wrote: > On Wed, 23 Apr 2003, Sergey A.Osokin wrote: > > > >Description: > > add ecvt()/fcvt()/gcvt() functions (SUSv3) (obtained from OpenBSD) > > + add locale-specific tricks > > > +.Sh DESCRIPTION > > +.Bf -symbolic > > +These functions are provided for compatibility with legacy code. > > +New code should use the > > +.Xr snprintf 3 > > +function for improved safety and portability. > > This statement was true 15 years ago when C90, (er, only 13 years ago) > didn't standardize these functions. At least FreeBSD hasn't needed them > for 10 years. Bringing them back now is a bug in whatever standards have > them IMO. Unfortunately, POSIX.1 has them in its XSI section. So, why OpenBSDers add them 4 monthes ago to they source tree? Also quote from SUSv3: CHANGE HISTORY First released in Issue 4, Version 2. Issue 5 Moved from X/OPEN UNIX extension to BASE. -- Rgdz, /"\ ASCII RIBBON CAMPAIGN Sergey Osokin aka oZZ, \ / AGAINST HTML MAIL http://ozz.pp.ru/ X AND NEWS / \