]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Make "msgattrib --set-obsolete" work without error.
authorBruno Haible <bruno@clisp.org>
Tue, 11 Dec 2001 11:41:01 +0000 (11:41 +0000)
committerBruno Haible <bruno@clisp.org>
Sun, 21 Jun 2009 21:40:22 +0000 (23:40 +0200)
src/ChangeLog
src/msgattrib.c

index a76acc60c0352cc89dcc372785bc9f3b20144e17..464804986cc70579298ff579e95df9b78047467e 100644 (file)
@@ -1,3 +1,8 @@
+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.
index 2208c1cd0e50c9a9dbc40c1464905ef04e77835d..61d5d7cd556b6b292639c499c280c9a0e7cf0d81 100644 (file)
@@ -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;