> > +/* 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 _______________________________________________ Bug-coreutils mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-coreutils
