Re: [PATCH/RFC 07/17] gettext.c: work around us not using setlocale(LC_CTYPE, "")
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Aug 31, 2010, 22:45 UTC
- Message-ID
- <20100831224517.GB6747@burratino>
- In-Reply-To
- <AANLkTi=+oGVx_T_-0T0RTqe+rV4QwQakjXUXKk8tddFL@mail.gmail.com>
Ævar Arnfjörð Bjarmason wrote:
> On Tue, Aug 31, 2010 at 15:18, Jonathan Nieder <jrnieder@gmail.com> wrote:
Show 6 quoted lines
>> Aside, not about this patch: glibc printf can be very convenient for >> translators, because of format strings like "%4$s". Do other common >> platforms like FreeBSD and Mingw have something similar? > > I certainly hope so. I was planning on documenting its usage, > Johannes?
Sorry, my knowledge was just outdated. It's in posix[1] now, which I think means we can expect it to be in any recent libc.
Unfortunately msys uses newlib 1.9.0 afaict, from 2001. The %4$s support was introduced[2] to newlib by Eric Blake on 2007-04-25.
[1] http://www.opengroup.org/onlinepubs/9699919799/functions/printf.html#tag_16_159_03 [2] http://sourceware.org/cgi-bin/cvsweb.cgi/src/newlib/libc/stdio/vfprintf.c?cvsroot=src