I experience a segmentation fault when msgmerge runs a particular merge that
appears to involve plural forms. This is reproducible with 0.17 and git head.
It appears that there is an obvious typo in the code. I have attached a
patch. I have also attached a test case (unpack and runme.sh) in case you
need convincing. ;-)
[msgmerge-segfault-fix.patch]
--- gettext-0.17.orig/gettext-tools/src/msgl-iconv.c
+++ gettext-0.17/gettext-tools/src/msgl-iconv.c
@@ -411,7 +411,7 @@
if (mp->prev_msgid != NULL)
if (!iconvable_string (cd, mp->prev_msgid))
return false;
- if (mp->msgid_plural != NULL)
+ if (mp->prev_msgid_plural != NULL)
if (!iconvable_string (cd, mp->prev_msgid_plural))
return false;
return true;