1998-04-28 Ulrich Drepper <drepper@cygnus.com>
+ * stdlib/grouping.h: Accept ungrouped numbers even if locale
+ defines grouping.
+
* intl/hash-string.h: Don't include values.h.
* inet/Makefile (tests): Add tst-ether_aton.
/* Internal header for proving correct grouping in strings of numbers.
- Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
+ Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>, 1995.
The GNU C Library is free software; you can redistribute it and/or
while (cp >= begin && (wchar_t) *cp != thousands)
--cp;
+ /* We allow the representation to contain no grouping at all even if
+ the locale specifies we can have grouping. */
+ if (cp < begin)
+ return end;
+
if (end - cp == (int) *gp + 1)
{
/* This group matches the specification. */