diff options
author | Bruno Haible <bruno@clisp.org> | 2001-12-11 11:41:01 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2009-06-21 23:40:22 +0200 |
commit | 4c584eba3e466748fea9ffa5dc2e0559339a311d (patch) | |
tree | db32802a363424ee0f43e6fc984a9180a64791cf | |
parent | 163f9651146a0cc1c7c23b24b04ac95f7af98970 (diff) | |
download | external_gettext-4c584eba3e466748fea9ffa5dc2e0559339a311d.zip external_gettext-4c584eba3e466748fea9ffa5dc2e0559339a311d.tar.gz external_gettext-4c584eba3e466748fea9ffa5dc2e0559339a311d.tar.bz2 |
Make "msgattrib --set-obsolete" work without error.
-rw-r--r-- | src/ChangeLog | 5 | ||||
-rw-r--r-- | src/msgattrib.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index a76acc6..4648049 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,10 @@ 2001-12-08 Bruno Haible <bruno@clisp.org> + * msgattrib.c (process_message_list): Never make the header entry + obsolete. + +2001-12-08 Bruno Haible <bruno@clisp.org> + * msgfilter.c (main): Fix getopt_long string: -i takes an argument. 2001-12-08 Bruno Haible <bruno@clisp.org> diff --git a/src/msgattrib.c b/src/msgattrib.c index 2208c1c..61d5d7c 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; |