Eric Blake wrote:
> > Perhaps GNU extensions PRIoSIZE, PRIuSIZE, PRIxSIZE, PRIXSIZE could be
> > added to GNU gettext.  That would mean we could write this instead:
> >
> >      printf (_("The size is %"PRIuSIZE".\n"), size);
> >
> > which would be nicer than either of the above.
>
> But your idea of formalizing PRI?SIZE as part of <gettext.h> is
> by far the nicest approach.

Sorry, but why do you consider this a "nice" approach?

- printf is broken on some platforms.
- libintl is a library that transforms strings to strings, according to user
  preferences.

Why would you want to put the fix for a broken printf into libintl?

Some, but not all, arguments to printf go through libintl first.
Some, but not all, strings returned libintl are then processed by printf.

How would you want to cope with the other cases?

Bruno



_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to