From: Bruno Haible Date: Tue, 11 Dec 2001 11:41:01 +0000 (+0000) Subject: Make "msgattrib --set-obsolete" work without error. X-Git-Tag: v0.11~209 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4c584eba3e466748fea9ffa5dc2e0559339a311d;p=thirdparty%2Fgettext.git Make "msgattrib --set-obsolete" work without error. --- diff --git a/src/ChangeLog b/src/ChangeLog index a76acc60c..464804986 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2001-12-08 Bruno Haible + + * msgattrib.c (process_message_list): Never make the header entry + obsolete. + 2001-12-08 Bruno Haible * msgfilter.c (main): Fix getopt_long string: -i takes an argument. diff --git a/src/msgattrib.c b/src/msgattrib.c index 2208c1cd0..61d5d7cd5 100644 --- a/src/msgattrib.c +++ b/src/msgattrib.c @@ -458,7 +458,8 @@ process_message_list (mlp) mp->is_fuzzy = true; if (to_change & RESET_FUZZY) mp->is_fuzzy = false; - if (to_change & SET_OBSOLETE) + /* Always keep the header entry non-obsolete. */ + if ((to_change & SET_OBSOLETE) && (mp->msgid[0] != '\0')) mp->obsolete = true; if (to_change & RESET_OBSOLETE) mp->obsolete = false;