summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2004-12-02 06:57:05 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2004-12-02 06:57:05 +0000
commita7c9d8dae80b5801f3553a89e16ad53a924cc5a1 (patch)
tree3302fb99e7d01889ac3751bdeac5326233b0db34
parentc82d4cf0b566da76cec77272b24c8b95bc177ff2 (diff)
downloadcoreutils-a7c9d8dae80b5801f3553a89e16ad53a924cc5a1.tar.xz
Assume setlocale, locale.h, and localeconv exist and work.
-rw-r--r--ChangeLog18
-rw-r--r--lib/ChangeLog11
-rw-r--r--m4/ChangeLog7
3 files changed, 36 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index b019c337b..a06232a02 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,24 @@
* Version 5.3.0.
+ * src/comm.c (compare_files): Assume setlocale exists.
+ * src/join.c (keycmp): Likewise.
+ * src/seq.c (decimal_point): Treat like sort. Now char.
+ All uses changed.
+ (main): Assume localeconv exists. Use same code as sort.
+ * src/sort.c (C_DECIMAL_POINT): Remove. Use changed to '.'.
+ Assume setlocale exists.
+ (thousands_sep): Renamed from th_sep.
+ (IS_THOUSANDS_SEP): Remove. All uses replaced by comparisons.
+ (NONZERO): Parenthesize use of arg.
+ (numcompare): Avoid duplicate loads. Use ISDIGIT as boolean, for
+ consistency. Avoid unnecessary negation by reversing
+ fraccompare args.
+ (main): Rewrite localeconv call to match seq.c.
+ * src/system.h: Assume locale.h exists.
+ (HAVE_SETLOCALE): Remove.
+ * src/uniq.c (different): Assume setlocale exists.
+
* src/ls.c (sort_files): Minor cleanup. Remove an unnecessary
'volatile' on a local variable. Rewrite to avoid unnecessary
double-assignment to 'func' in the usual case where strcoll does
diff --git a/lib/ChangeLog b/lib/ChangeLog
index c0f8caffb..c3e5bbeab 100644
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -1,3 +1,14 @@
+2004-12-01 Paul Eggert <eggert@cs.ucla.edu>
+
+ * hard-locale.c: Assume <locale.h> exists.
+ Include "strdup.h".
+ (GLIBC_VERSION): New macro.
+ (hard_locale): Assume setlocale exists.
+ Rewrite to avoid #ifdef.
+ Use strdup rather than malloc + strcpy.
+ * human.c: Assume <locale.h> exists.
+ (human_readable): Assume localeconv exists.
+
2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
* getcwd.c (is_ENAMETOOLONG): New macro.
diff --git a/m4/ChangeLog b/m4/ChangeLog
index 4c7e5cc30..2e0a31f67 100644
--- a/m4/ChangeLog
+++ b/m4/ChangeLog
@@ -1,3 +1,10 @@
+2004-12-01 Paul Eggert <eggert@cs.ucla.edu>
+
+ * hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
+ exist.
+ * human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
+ * jm-macros.m4 (gl_MACROS): Assume localeconv exists.
+
2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
* getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):