aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-02-27 11:47:27 +0000
committerUlrich Drepper <drepper@redhat.com>1998-02-27 11:47:27 +0000
commita7f804d855439cf45947d587af33df6aa8433ca4 (patch)
tree8efeef5f37ea9e4bce61b7a80a619794e8f75cab
parentb0df72f4fbd600427553425da5be32bbd52c15e3 (diff)
downloadglibc-a7f804d855439cf45947d587af33df6aa8433ca4.zip
glibc-a7f804d855439cf45947d587af33df6aa8433ca4.tar.gz
glibc-a7f804d855439cf45947d587af33df6aa8433ca4.tar.bz2
Update.
* misc/tst-efgcvt.c (ecvt_tests): Add new test case for reported bug. 1998-02-25 Andreas Jaeger <aj@arthur.rhein-neckar.de> * manual/arith.texi (Old-style number conversion): Correct typo. Reported by Göran Uddeborg <goeran@uddeborg.pp.se>. 1998-02-27 Ulrich Drepper <drepper@cygnus.com>
-rw-r--r--ChangeLog10
-rw-r--r--manual/arith.texi2
-rw-r--r--misc/tst-efgcvt.c7
3 files changed, 15 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index ebdc2fc..690d736 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,15 @@
1998-02-27 Ulrich Drepper <drepper@cygnus.com>
+ * misc/tst-efgcvt.c (ecvt_tests): Add new test case for reported
+ bug.
+
+1998-02-25 Andreas Jaeger <aj@arthur.rhein-neckar.de>
+
+ * manual/arith.texi (Old-style number conversion): Correct
+ typo. Reported by Göran Uddeborg <goeran@uddeborg.pp.se>.
+
+1998-02-27 Ulrich Drepper <drepper@cygnus.com>
+
* posix/execlp.c: POSIX.1 says that argv[0] *should* be provided,
but does not require it. Handle missing argv[] values gracefully.
* posix/execl.c: Likewise.
diff --git a/manual/arith.texi b/manual/arith.texi
index 1e3b2f5..0d62e41 100644
--- a/manual/arith.texi
+++ b/manual/arith.texi
@@ -1352,7 +1352,7 @@ returned string neither contains decimal point nor sign. The high-order
digit of the string is non-zero (unless @var{value} is actually zero)
and the low-order digit is rounded. The variable pointed to by
@var{decpt} gets the position of the decimal character relative to the
-start of the string. If @var{value} is negativ, @var{sign} is set to a
+start of the string. If @var{value} is negative, @var{sign} is set to a
non-zero value, otherwise to 0.
The returned string is statically allocated and overwritten by each call
diff --git a/misc/tst-efgcvt.c b/misc/tst-efgcvt.c
index fc6bbf2..780dd9a 100644
--- a/misc/tst-efgcvt.c
+++ b/misc/tst-efgcvt.c
@@ -26,7 +26,7 @@
int error_count;
-typedef struct
+typedef struct
{
double value;
int ndigit;
@@ -55,6 +55,7 @@ static testcase ecvt_tests[] =
{ 100.01, -4, 3, "" },
{ 123.01, -4, 3, "" },
{ 126.71, -4, 3, "" },
+ { 0.0, 4, 1, "0000" },
/* -1.0 is end marker. */
{ -1.0, 0, 0, "" }
};
@@ -132,13 +133,13 @@ special (void)
}
-
+
int
main (void)
{
test (ecvt_tests, ecvt, "ecvt");
test (fcvt_tests, fcvt, "fcvt");
special ();
-
+
return error_count;
}