summaryrefslogtreecommitdiff
path: root/lib/ChangeLog
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2004-07-13 00:07:26 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2004-07-13 00:07:26 +0000
commite5d9694985fdc0a3b462ae9ae1f9e85474744210 (patch)
tree3a15f3d9c8f8f3a2dbba0ab48ff0d3fbe953629b /lib/ChangeLog
parent92a74b0a8831f74e19dde24ce51a344bb0f75793 (diff)
downloadcoreutils-e5d9694985fdc0a3b462ae9ae1f9e85474744210.tar.xz
Prefer c_strtod to setlocale when scanning floating point.
Diffstat (limited to 'lib/ChangeLog')
-rw-r--r--lib/ChangeLog18
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/ChangeLog b/lib/ChangeLog
index 5505bbac9..68138d128 100644
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -1,3 +1,21 @@
+2004-07-12 Paul Eggert <eggert@cs.ucla.edu>
+
+ * c-strtod.c (STRTOD_L): New macro.
+ (C_STRTOD) [defined LC_ALL_MASK]: Use it, so that the
+ code is reentrant on platforms that have strtod_l.
+
+ * getloadavg.c: Include <errno.h>, <stdio.h>, <stdlib.h> even
+ if HAVE_GETLOADAVG is defined, so that the test program can work.
+ (errno): Remove declaration; not needed in C89 or later.
+ Include "c-strtod.h".
+ Do not include locale.h or define setlocale; no longer needed.
+ Include <limits.h>.
+ (INT_STRLEN_BOUND): New macro.
+ (getloadavg): Use it to compute buffer size.
+ Don't assume that buffer will be properly terminated by 'read'.
+ Use c_strtod instead of setlocale.
+ (main) [defined TEST]: Return int, not void.
+
2004-07-11 Paul Eggert <eggert@cs.ucla.edu>
* Makefile.am (libfetish_a_SOURCES): Add c-strtold.c.