diff options
author | Ulrich Drepper <drepper@redhat.com> | 2000-02-11 20:49:55 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2000-02-11 20:49:55 +0000 |
commit | 3088979fea147f08023c46ea7542b831d0a7d2f7 (patch) | |
tree | a4ce018affdae2ca450b3aa96bc58cf172b9094f /locale | |
parent | cf0fac8b90d3e22efd9e640203f735db14370be5 (diff) | |
download | glibc-3088979fea147f08023c46ea7542b831d0a7d2f7.zip glibc-3088979fea147f08023c46ea7542b831d0a7d2f7.tar.gz glibc-3088979fea147f08023c46ea7542b831d0a7d2f7.tar.bz2 |
Update.
2000-02-08 Andreas Jaeger <aj@suse.de>
* locale/programs/locale.c (write_locales): Fix handling of
whitespace lines.
Fixes PR libc/1588, reported by Miroslav Holcak
<miroslav.holcak@vitkovice.cz>.
Diffstat (limited to 'locale')
-rw-r--r-- | locale/programs/locale.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/locale/programs/locale.c b/locale/programs/locale.c index 36f253a..06900a8 100644 --- a/locale/programs/locale.c +++ b/locale/programs/locale.c @@ -1,5 +1,5 @@ /* Implementation of the locale program according to POSIX 9945-2. - Copyright (C) 1995, 1996, 1997, 1999 Free Software Foundation, Inc. + Copyright (C) 1995, 1996, 1997, 1999, 2000 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@cygnus.com>, 1995. @@ -376,11 +376,11 @@ write_locales (void) cp = buf; /* Ignore leading white space. */ - while (isspace (cp[0])) + while (isspace (cp[0]) && cp[0] != '\n') ++cp; /* A leading '#' signals a comment line. */ - if (cp[0] != '\0' && cp[0] != '#') + if (cp[0] != '\0' && cp[0] != '#' && cp[0] != '\n') { alias = cp++; while (cp[0] != '\0' && !isspace (cp[0])) |