[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gnulib] Re: printf (_("...%zu..."), X) where X is of type size_
From: |
Bruno Haible |
Subject: |
Re: [bug-gnulib] Re: printf (_("...%zu..."), X) where X is of type size_t |
Date: |
Tue, 4 Oct 2005 19:21:16 +0200 |
User-agent: |
KMail/1.5 |
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [bug-gnulib] Re: printf (_("...%zu..."), X) where X is of type size_t,
Bruno Haible <=