summaryrefslogtreecommitdiff
path: root/locale
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-01-20 01:49:21 +0000
committerUlrich Drepper <drepper@redhat.com>2001-01-20 01:49:21 +0000
commitf7719a9a9da1777f5c20e50c98bff54ad00d402e (patch)
treedc4e174fcdb03a8ad37b7c1382d38779414f7d02 /locale
parentdb11c38c4df163b2857f1e51f751ead085a83986 (diff)
(__newlocale): Fix test for setting all categories.
Diffstat (limited to 'locale')
-rw-r--r--locale/newlocale.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/locale/newlocale.c b/locale/newlocale.c
index 43419a9451..1f5b745bb0 100644
--- a/locale/newlocale.c
+++ b/locale/newlocale.c
@@ -1,5 +1,5 @@
/* Return a reference to locale information record.
- Copyright (C) 1996, 1997, 1999, 2000 Free Software Foundation, Inc.
+ Copyright (C) 1996, 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996.
@@ -50,7 +50,7 @@ __newlocale (int category_mask, const char *locale, __locale_t base)
int cnt;
/* We treat LC_ALL in the same way as if all bits were set. */
- if (category_mask == LC_ALL)
+ if (category_mask == 1 << LC_ALL)
category_mask = (1 << __LC_LAST) - 1 - (1 << LC_ALL);
/* Sanity check for CATEGORY argument. */