summaryrefslogtreecommitdiff
path: root/builtin.h
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2013-12-01 09:45:38 +0700
committerJunio C Hamano <gitster@pobox.com>2013-12-04 16:10:51 -0800
commit9c0495d23e6999375976ca44e3812fc65b73626e (patch)
tree3836743bccef2ce0d9ae1be497021bc5eab90a83 /builtin.h
parenta155a5f075cdc09e584a58d68bdce0c80e6c4b5a (diff)
downloadgit-nd/gettext-vsnprintf.tar.gz
gettext.c: detect the vsnprintf bug at runtimend/gettext-vsnprintf
Bug 6530 [1] in glibc 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. We could know running glibc version with gnu_get_libc_version(). But version is not a sure way to detect the bug because downstream may back port the fix to older versions. Do a runtime test that immitates the call flow that leads to "your vsnprintf is broken". Only enable the workaround if the test fails. Tested on Gentoo Linux, glibc 2.16.0 and 2.17, amd64. [1] http://sourceware.org/bugzilla/show_bug.cgi?id=6530 Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin.h')
0 files changed, 0 insertions, 0 deletions