From 1f2d43b200f1176eb83e3d037e00098ef6a34dda Mon Sep 17 00:00:00 2001 From: glenlow Date: Tue, 20 May 2008 07:34:58 +0000 Subject: [PATCH] binary prebuild fix: _nl_msg_cat_cntr in libintl uninitialized --- macosx/prebuild/gettext.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 macosx/prebuild/gettext.patch diff --git a/macosx/prebuild/gettext.patch b/macosx/prebuild/gettext.patch new file mode 100644 index 000000000..2ae95c8bf --- /dev/null +++ b/macosx/prebuild/gettext.patch @@ -0,0 +1,12 @@ +diff -ru gettext-0.17/gettext-runtime/intl/loadmsgcat.c gettext-0.17.patched/gettext-runtime/intl/loadmsgcat.c +--- gettext-0.17/gettext-runtime/intl/loadmsgcat.c 2007-10-14 00:26:32.000000000 +0800 ++++ gettext-0.17.patched/gettext-runtime/intl/loadmsgcat.c 2008-05-20 14:43:12.000000000 +0800 +@@ -503,7 +503,7 @@ + /* We need a sign, whether a new catalog was loaded, which can be associated + with all translations. This is important if the translations are + cached by one of GCC's features. */ +-int _nl_msg_cat_cntr; ++int _nl_msg_cat_cntr = 0; + + + /* Expand a system dependent string segment. Return NULL if unsupported. */ -- 2.50.1