Update.
authorUlrich Drepper <drepper@redhat.com>
Wed, 18 Aug 1999 00:23:27 +0000 (00:23 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 18 Aug 1999 00:23:27 +0000 (00:23 +0000)
1999-08-17  Ulrich Drepper  <drepper@cygnus.com>

* locale/weight.h: Set errno if an invalid character is found.

ChangeLog
locale/weight.h

index f92b0b8..02085ad 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,9 +1,13 @@
+1999-08-17  Ulrich Drepper  <drepper@cygnus.com>
+
+       * locale/weight.h: Set errno if an invalid character is found.
+
 1999-08-17  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
 
        * math/libm-test.c (erfc_test): Add test for example from PR
        libc/1259.
        (erf_test): Likewise.
-                       
+
 1999-08-17  Ulrich Drepper  <drepper@cygnus.com>
 
        * sysdeps/ieee754/dbl-64/s_erf.c: Correct type in performance increase
index 9a1911b..fed8424 100644 (file)
@@ -1,6 +1,6 @@
-/* Copyright (C) 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1996, 1997, 1999 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
-   Written by Ulrich Drepper, <drepper@gnu.ai.mit.edu>.
+   Written by Ulrich Drepper, <drepper@cygnus.com>.
 
    The GNU C Library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Library General Public License as
@@ -107,6 +107,9 @@ get_weight (const STRING_TYPE **str, weight_t *result,
                  result->data[cnt].value = &__collate_extra[idx];
                  idx += result->data[cnt].number;
                }
+             /* The Unix standard requires that a character outside
+                the domain is signalled by setting `errno'.  */
+             __set_errno (EINVAL);
              return;
            }
          slot += level_size;