Re: [PATCH] gettext.c: only work around the vsnprintf bug on glibc < 2.17

2013-11-30 Thread Andreas Schwab
Nguyễn Thái Ngọc Duy writes: > diff --git a/gettext.c b/gettext.c > index 71e9545..91e679d 100644 > --- a/gettext.c > +++ b/gettext.c > @@ -18,6 +18,13 @@ > #endif > #endif > > +#ifdef USE_GLIBC > +#ifndef _GNU_SOURCE > +#define _GNU_SOURCE > +#endif Defining a feature test macro after a

[PATCH] gettext.c: only work around the vsnprintf bug on glibc < 2.17

2013-11-29 Thread Nguyễn Thái Ngọc Duy
Bug 6530 [1] causes "git show v0.99.6~1" to fail with error "your vsnprintf is broken". The workaround avoids that, but it corrupts system error messages in non-C locales. The bug has been fixed since 2.17. If git is built with glibc, it can know running libc version with gnu_get_libc_version() an