From cb27de64473e0183ffddeae26ffbd0a52d7dbfd4 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 25 Jan 2009 12:44:09 +0000 Subject: [PATCH] Fix bug introduced on 2008-10-04. --- gettext-tools/src/ChangeLog | 6 ++++++ gettext-tools/src/read-catalog-abstract.c | 7 +++++-- gettext-tools/src/read-catalog-abstract.h | 5 +++-- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/gettext-tools/src/ChangeLog b/gettext-tools/src/ChangeLog index c572ef889..7fdf80820 100644 --- a/gettext-tools/src/ChangeLog +++ b/gettext-tools/src/ChangeLog @@ -1,3 +1,9 @@ +2009-01-25 Bruno Haible + + Fix bug introduced on 2008-10-04. + * read-catalog-abstract.c (po_parse_comment_special): Initialize + *rangep. + 2009-01-18 Bruno Haible * msgfmt.c: Include str-list.h. diff --git a/gettext-tools/src/read-catalog-abstract.c b/gettext-tools/src/read-catalog-abstract.c index 05a739a46..fd821f46c 100644 --- a/gettext-tools/src/read-catalog-abstract.c +++ b/gettext-tools/src/read-catalog-abstract.c @@ -1,5 +1,5 @@ /* Reading PO files, abstract class. - Copyright (C) 1995-1996, 1998, 2000-2008 Free Software Foundation, Inc. + Copyright (C) 1995-1996, 1998, 2000-2009 Free Software Foundation, Inc. This file was written by Peter Miller @@ -255,7 +255,8 @@ po_callback_comment_special (const char *s) } -/* Parse a special comment and put the result in *fuzzyp, formatp, *wrapp. */ +/* Parse a special comment and put the result in *fuzzyp, formatp, *rangep, + *wrapp. */ void po_parse_comment_special (const char *s, bool *fuzzyp, enum is_format formatp[NFORMATS], @@ -266,6 +267,8 @@ po_parse_comment_special (const char *s, *fuzzyp = false; for (i = 0; i < NFORMATS; i++) formatp[i] = undecided; + rangep->min = -1; + rangep->max = -1; *wrapp = undecided; while (*s != '\0') diff --git a/gettext-tools/src/read-catalog-abstract.h b/gettext-tools/src/read-catalog-abstract.h index 17af04cf7..284746349 100644 --- a/gettext-tools/src/read-catalog-abstract.h +++ b/gettext-tools/src/read-catalog-abstract.h @@ -1,5 +1,5 @@ /* Reading PO files, abstract class. - Copyright (C) 1995-1996, 1998, 2000-2003, 2005-2006, 2008 Free Software Foundation, Inc. + Copyright (C) 1995-1996, 1998, 2000-2003, 2005-2006, 2008-2009 Free Software Foundation, Inc. This file was written by Peter Miller @@ -179,7 +179,8 @@ extern void po_callback_comment_filepos (const char *s, size_t line); extern void po_callback_comment_special (const char *s); extern void po_callback_comment_dispatcher (const char *s); -/* Parse a special comment and put the result in *fuzzyp, formatp, *wrapp. */ +/* Parse a special comment and put the result in *fuzzyp, formatp, *rangep, + *wrapp. */ extern void po_parse_comment_special (const char *s, bool *fuzzyp, enum is_format formatp[NFORMATS], struct argument_range *rangep, -- 2.47.3