bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: coreutils-5.90 released


From: Eric Blake
Subject: Re: coreutils-5.90 released
Date: Fri, 30 Sep 2005 18:22:09 +0000

> > +/* Determine a printf conversion specifier that is appropriate for size_t.
> > +   Ideally, we'd just use the c99-specified `z' length modifier, defining
> > +   PRI_z to "zu", but that's not portable.  */

> I thought about doing that a while ago but gave it up because it
> appears that this sort of approach will run afoul of gettext.  That
> is, xgettext groks standard C macros like PRIuMAX as a special case,
> but it doesn't understand arbitrary C macros that we write.  Hence the
> formats won't be entered into the .po files properly.

Maybe it's time that we provide a gnulib module for printf that
provides all modifiers required by C99 (and POSIX 2001), and
use the gnulib version on losing systems.  Then we could always
assume %z, %j, %L, and %t work, without falling afoul of xgettext
and without worrying whether size_t is unsigned int, unsigned long
int, or unsigned long long int.

--
Eric Blake






reply via email to

[Prev in Thread] Current Thread [Next in Thread]