Skip to content

Commit

Permalink
(collate_read): Ignore script lines as well when ignoring the whole c…
Browse files Browse the repository at this point in the history
…ategory.
  • Loading branch information
Ulrich Drepper committed Apr 8, 2008
1 parent d24be48 commit 32df671
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion locale/programs/ld-collate.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright (C) 1995-2003, 2005, 2006, 2007 Free Software Foundation, Inc.
/* Copyright (C) 1995-2003, 2005-2007, 2008 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@gnu.org>, 1995.
Expand Down Expand Up @@ -3195,6 +3195,14 @@ error while adding equivalent collating symbol"));
break;

case tok_script:
/* Ignore the rest of the line if we don't need the input of
this line. */
if (ignore_content)
{
lr_ignore_rest (ldfile, 0);
break;
}

/* We get told about the scripts we know. */
arg = lr_token (ldfile, charmap, result, repertoire, verbose);
if (arg->tok != tok_bsymbol)
Expand Down

0 comments on commit 32df671

Please sign in to comment.