On Sat, 1 Dec 2001, Simon Cozens wrote:
> On Fri, Nov 30, 2001 at 03:45:44PM -0800, Hong Zhang wrote:
> > It may be a good idea to have our own version of vsnprintf().
>
> No, I *want* us to have our own version of vsnprintf. Please steal
> one from Perl!
Chip's the original author of that. I'd imagine he'd be happy for perl6
to use it to.
However, perl5's sprintf still falls back on the system's sprintf for
floating point conversion, so the problem is still there.
Further, there are other places in the current source tree that
assume INTVAL can be printed with %d and FLOATVAL can be printed with
%f (or %g, I forget which). Try compiling with gcc -Wformat with
intval=long long and floatval= long double.
--
Andy Dougherty doughera@lafayette.edu
Dept. of Physics
Lafayette College, Easton PA 18042
Thread Previous
|
Thread Next