standards/51292: [PATCH] add ecvt()/fcvt()/gcvt() functions
(SUSv3)
Bruce Evans
bde at zeta.org.au
Tue Apr 22 14:30:06 PDT 2003
The following reply was made to PR standards/51292; it has been noted by GNATS.
From: Bruce Evans <bde at zeta.org.au>
To: "Sergey A.Osokin" <osa at FreeBSD.org.ru>
Cc: FreeBSD-gnats-submit at freebsd.org,
"" <freebsd-standards at freebsd.org>
Subject: Re: standards/51292: [PATCH] add ecvt()/fcvt()/gcvt() functions
(SUSv3)
Date: Wed, 23 Apr 2003 07:28:49 +1000 (EST)
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.
Bruce
More information about the freebsd-standards
mailing list