]> git.ipfire.org Git - thirdparty/git.git/commit - config.mak.uname
mingw: let's use gettext with MSYS2
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Tue, 26 Jan 2016 14:34:16 +0000 (15:34 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 26 Jan 2016 21:42:59 +0000 (13:42 -0800)
commitf9206ce26818c3fc1cfd12cfce0acf0bd582270a
tree74e736caf9ebc6f6a91951c4075ac0bcd9377282
parent2921600afbcdd5f245475602cabba2fbaa5ff93f
mingw: let's use gettext with MSYS2

This solves two problems:

- we now have proper localisation even on Windows

- we sidestep the infamous "BUG: your vsnprintf is broken (returned -1)"
  message when running "git init" (which otherwise prevents the entire
  test suite from running) because libintl.h overrides vsnprintf() with
  libintl_vsnprintf() [*1*]

The latter issue is rather crucial, as *no* test passes in Git for
Windows without this fix.

Footnote *1*: gettext_git=http://git.savannah.gnu.org/cgit/gettext.git
$gettext_git/tree/gettext-runtime/intl/libgnuintl.in.h#n380

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
config.mak.uname